Hacker News new | comments | show | ask | jobs | submit login

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



You aren't doing an apples to apples comparison. For example, try the AWK case 100 times and see which is faster.




Applications are open for YC Winter 2019

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: