Created
March 19, 2014 22:06
-
-
Save yorickpeterse/9652463 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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