summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bm_vm4_pipe.rb2
-rw-r--r--benchmark/bm_vm4_thread_pass.rb2
2 files changed, 2 insertions, 2 deletions
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{