Permalink
Browse files

Add bench for ruby 1.8.7-p358

  • Loading branch information...
1 parent 27e77cf commit cda4f2fe5531f437404e714e81fe9f1e3b6f7c06 @nate nate committed Mar 27, 2012
Showing with 28 additions and 0 deletions.
  1. +9 −0 benchmark/multi_ruby_bench.sh
  2. +19 −0 benchmark/sieve.rb
@@ -24,6 +24,15 @@ ruby benchmark/sieve.rb 1
ruby benchmark/sieve.rb 2
ruby benchmark/sieve.rb 3
echo
+rvm use 1.8.7
+echo
+echo `ruby -v`
+echo
+ruby benchmark/sieve.rb 0
+ruby benchmark/sieve.rb 1
+ruby benchmark/sieve.rb 2
+ruby benchmark/sieve.rb 3
+echo
rvm use 1.9.2
echo
echo `ruby -v`
View
@@ -105,6 +105,25 @@ def sieve(channels)
receive 25.010000 0.290000 25.300000 ( 25.238002)
+ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin11.3.0]
+
+150's prime, 5 goroutines, channel buffer size is 0
+ user system total real
+receive 17.890000 0.090000 17.980000 ( 17.984755)
+
+150's prime, 5 goroutines, channel buffer size is 1
+ user system total real
+receive 17.030000 0.090000 17.120000 ( 17.131916)
+
+150's prime, 5 goroutines, channel buffer size is 2
+ user system total real
+receive 17.060000 0.090000 17.150000 ( 17.168336)
+
+150's prime, 5 goroutines, channel buffer size is 3
+ user system total real
+receive 17.090000 0.100000 17.190000 ( 17.187443)
+
+
ruby 1.9.2p318 (2012-02-14 revision 34678) [x86_64-darwin11.3.0]
150's prime, 5 goroutines, channel buffer size is 0

0 comments on commit cda4f2f

Please sign in to comment.