Skip to content

Instantly share code, notes, and snippets.

@yorickpeterse
Created March 19, 2014 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorickpeterse/9652463 to your computer and use it in GitHub Desktop.
Save yorickpeterse/9652463 to your computer and use it in GitHub Desktop.
with Rubinius.synchronize:
$ ./bin/benchmark core/file/bench_each_byte.rb
=== rbx ===
File#each_byte with a small file
29.1 (±0.0%) i/s - 146 in 5.023101s (cycle=2)
File#each_byte with a medium file
3.3 (±0.0%) i/s - 17 in 5.228034s (cycle=1)
File#each_byte with a large file
0.3 (±0.0%) i/s - 2 in 6.110730s (cycle=1)
Without Rubinius.synchronize:
$ ./bin/benchmark core/file/bench_each_byte.rb
=== rbx ===
File#each_byte with a small file
187.9 (±2.1%) i/s - 945 in 5.030880s (cycle=15)
File#each_byte with a medium file
21.0 (±0.0%) i/s - 106 in 5.042086s (cycle=2)
File#each_byte with a large file
2.1 (±0.0%) i/s - 11 in 5.196253s (cycle=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment