summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-04 13:14:28 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-04 13:14:28 +0000
commitf5b0f04d2ae2fdbf94f0a061a40693d84a863e0e (patch)
tree2d1c6c6ef5283ae28aeab244f9e1bf2607ea840a
parent674a33edf51e5b5a47f78b2794500ad2e61c69c3 (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--benchmark/bm_vm4_pipe.rb2
-rw-r--r--benchmark/bm_vm4_thread_pass.rb2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f5bafdd2c9..b8cf8a0c58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* test/date/test_date_base.rb: don't use no message skip().
diff --git a/benchmark/bm_vm4_pipe.rb b/benchmark/bm_vm4_pipe.rb
index d33c5223a9..272d231eba 100644
--- a/benchmark/bm_vm4_pipe.rb
+++ b/benchmark/bm_vm4_pipe.rb
@@ -1,7 +1,7 @@
# Mesure small and plenty pipe read/write.
# A performance may depend on GVL implementation.
-lmax = 1_000_000
+lmax = 100_000
r, w = IO.pipe
[Thread.new{
lmax.times{
diff --git a/benchmark/bm_vm4_thread_pass.rb b/benchmark/bm_vm4_thread_pass.rb
index 171bfecbfe..b5b3c0bc85 100644
--- a/benchmark/bm_vm4_thread_pass.rb
+++ b/benchmark/bm_vm4_thread_pass.rb
@@ -2,7 +2,7 @@
# A performance may depend on GVL implementation.
tmax = (ARGV.shift || 2).to_i
-lmax = 2_000_000 / tmax
+lmax = 200_000 / tmax
(1..tmax).map{
Thread.new{