Result
Source
startTime = Time.new.to_f
sum = ""
50000.times{|e| sum += e.to_s}
endTime = Time.new.to_f
puts (endTime - startTime).to_s + ' sec'
Comparison
Results at my machine.
| Firefox 3: | 3.636 sec | ||
| WebKit r34603 (Safari 3) with SquirrelFish: | 4.368 sec | ||
| Opera 9.50: | 4.679 sec | ||
| Ruby 1.9.0: | 12.051 sec | ||
| JRuby 1.1 b1: | 42.691 sec |
HotRuby is 3.3 times faster than Ruby(YARV), 11.7 times faster than JRuby.
HOME
Prev Page