This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-github
/
ruby--ruby
Watch
1
Star
0
Fork
You've already forked ruby--ruby
0
mirror of
https://github.com/ruby/ruby.git
synced
2022-11-09 12:17:21 -05:00
Code
Releases
Activity
800103e40a
ruby--ruby
/
tool
/
hashbench1.rb
12 lines
101 B
Ruby
Raw
Normal View
History
Unescape
Escape
* common.mk: add new rules `gcbench-rdoc', `gcbench-hash'. * tool/gcbench.rb: separate GC bench framework and process. * tool/hashbench1.rb, tool/hashbench2.rb: add two types GC bench. hashbench1: many temporal objects (GC by newobj) hashbench2: hash size becomes bigger and bigger (GC by malloc) Two benchs are executed by `gcbench-hash' rule. * tool/rdocbench.rb: separated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-19 18:33:02 -04:00
value
=
0
.
01
h
=
{
}
* tool/hashbench1.rb: fix parameters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-20 01:01:56 -04:00
n
=
50_000
* common.mk: add new rules `gcbench-rdoc', `gcbench-hash'. * tool/gcbench.rb: separate GC bench framework and process. * tool/hashbench1.rb, tool/hashbench2.rb: add two types GC bench. hashbench1: many temporal objects (GC by newobj) hashbench2: hash size becomes bigger and bigger (GC by malloc) Two benchs are executed by `gcbench-hash' rule. * tool/rdocbench.rb: separated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-19 18:33:02 -04:00
1
.
upto
(
n
)
{
|
i
|
* tool/hashbench1.rb: fix parameters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-20 01:01:56 -04:00
h
[
"
%020d
"
%
i
]
=
"
v-
#{
i
}
"
* common.mk: add new rules `gcbench-rdoc', `gcbench-hash'. * tool/gcbench.rb: separate GC bench framework and process. * tool/hashbench1.rb, tool/hashbench2.rb: add two types GC bench. hashbench1: many temporal objects (GC by newobj) hashbench2: hash size becomes bigger and bigger (GC by malloc) Two benchs are executed by `gcbench-hash' rule. * tool/rdocbench.rb: separated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-19 18:33:02 -04:00
}
(
n
*
500
)
.
times
{
''
}
Copy permalink