Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.