Last active
December 11, 2015 03:19
-
-
Save mattias-lw/4536907 to your computer and use it in GitHub Desktop.
Small performance benchmarks using code from here: http://t.co/Zw0Nh8lU
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
% ruby -v | |
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.1.0] | |
% ruby bench.rb | |
Time per iteration = 59.04954 microseconds | |
% ruby -v | |
jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on Java HotSpot(TM) 64-Bit Server VM 1.7.0_06-b24 [darwin-x86_64] | |
% ruby bench.rb | |
Time per iteration = 26.02 microseconds | |
% ruby -v | |
rubinius 2.0.0dev (1.8.7 7720e2e8 yyyy-mm-dd JI) [x86_64-apple-darwin11.2.0] | |
% ruby bench.rb | |
Time per iteration = 17.37565 microseconds | |
% java Chain | |
Time per iteration = 855 nanoseconds. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment