mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* benchmark/bm_vm4_pipe.rb: Reduced iterations. Too slow benchmark
is bad. * benchmark/bm_vm4_thread_pass.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
674a33edf5
commit
f5b0f04d2a
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Wed May 4 22:13:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* benchmark/bm_vm4_pipe.rb: Reduced iterations. Too slow benchmark
|
||||||
|
is bad.
|
||||||
|
* benchmark/bm_vm4_thread_pass.rb: ditto.
|
||||||
|
|
||||||
Wed May 4 22:08:22 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Wed May 4 22:08:22 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* test/date/test_date_base.rb: don't use no message skip().
|
* test/date/test_date_base.rb: don't use no message skip().
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Mesure small and plenty pipe read/write.
|
# Mesure small and plenty pipe read/write.
|
||||||
# A performance may depend on GVL implementation.
|
# A performance may depend on GVL implementation.
|
||||||
|
|
||||||
lmax = 1_000_000
|
lmax = 100_000
|
||||||
r, w = IO.pipe
|
r, w = IO.pipe
|
||||||
[Thread.new{
|
[Thread.new{
|
||||||
lmax.times{
|
lmax.times{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# A performance may depend on GVL implementation.
|
# A performance may depend on GVL implementation.
|
||||||
|
|
||||||
tmax = (ARGV.shift || 2).to_i
|
tmax = (ARGV.shift || 2).to_i
|
||||||
lmax = 2_000_000 / tmax
|
lmax = 200_000 / tmax
|
||||||
|
|
||||||
(1..tmax).map{
|
(1..tmax).map{
|
||||||
Thread.new{
|
Thread.new{
|
||||||
|
|
Loading…
Add table
Reference in a new issue