Skip to content

Commit

Permalink
Add bench for ruby 1.8.7-p358
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sutton committed Mar 27, 2012
1 parent 27e77cf commit cda4f2f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions benchmark/multi_ruby_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ else

fi

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.8.7
echo
echo `ruby -v`
echo
Expand Down
19 changes: 19 additions & 0 deletions benchmark/sieve.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cda4f2f

Please sign in to comment.