3 ms·
I know I'm feeding a troll with a title like that, but the results are very strange. On my macbook: $ ruby -v rubinius 2.0.0.rc1 (1.8.7 release yyyy-mm-dd J
by conorh 14y ago
I know I'm feeding a troll with a title like that, but the results are very strange. On my macbook:
$ ruby -v
rubinius 2.0.0.rc1 (1.8.7 release yyyy-mm-dd JI) [x86_64-apple-darwin12.2.0]
$ time ./runner.sh ruby bogobench.rb
Running 'ruby bogobench.rb' 100 times…
…done.
real 0m0.732s
user 0m0.289s
sys 0m0.273s
Linode with Ubuntu:
$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [i686-linux]
$ time ./runner.sh ruby bogobench.rb
Running 'ruby bogobench.rb' 100 times…
…done.
real 0m3.701s
user 0m2.486s
sys 0m1.202s
- niggler 14y agoYou aren't doing an apples to apples comparison. For example, try the AWK case 100 times and see which is faster.