1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add benchmark for hash small literals

Co-Authored-By: Krzysztof Rybka <krzysztof.rybka@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tenderlove 2018-12-06 18:20:11 +00:00
parent ea921abdec
commit bf41340ebb
3 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# frozen_string_literal: true
1_000_000.times.map { { "foo" => "bar", "bar" => "baz" } }

View file

@ -0,0 +1,3 @@
# frozen_string_literal: true
1_000_000.times.map { { "foo" => "bar", "bar" => "baz", "baz" => "lol", "lol" => "lgtm" } }

View file

@ -0,0 +1,3 @@
# frozen_string_literal: true
1_000_000.times.map { { "foo" => "bar", "bar" => "baz", "baz" => "lol", "lol" => "lgtm", "lgtm" => "nope", "nope" => "ok", "ok" => "again", "again" => "wait" } }