Wrap text
Report abuse
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[headius @ cnutter:~/projects/jruby]
◆ jruby --1.9 -rffi/times -rbenchmark -e "str = '1234567890' * 100_000; 10.times { puts Benchmark.measure { str.each_char {|c| } } }"
0.420000 0.020000 0.440000 ( 0.352654)
0.220000 0.010000 0.230000 ( 0.204275)
0.170000 0.000000 0.170000 ( 0.173804)
0.160000 0.010000 0.170000 ( 0.177071)
0.170000 0.000000 0.170000 ( 0.174358)
0.170000 0.000000 0.170000 ( 0.180387)
0.170000 0.010000 0.180000 ( 0.178207)
0.170000 0.000000 0.170000 ( 0.176356)
0.170000 0.000000 0.170000 ( 0.176848)
0.160000 0.010000 0.170000 ( 0.176760)
[headius @ cnutter:~/projects/jruby]
◆ ruby1.9 -rbenchmark -e "str = '1234567890' * 100_000; 10.times { puts Benchmark.measure { str.each_char {|c| } } }" 0.220000 0.000000 0.220000 ( 0.231543)
0.220000 0.010000 0.230000 ( 0.229119)
0.220000 0.000000 0.220000 ( 0.227584)
0.220000 0.000000 0.220000 ( 0.228429)
0.220000 0.000000 0.220000 ( 0.228811)
0.220000 0.000000 0.220000 ( 0.227594)
0.220000 0.000000 0.220000 ( 0.227888)
0.220000 0.010000 0.230000 ( 0.226727)
0.220000 0.000000 0.220000 ( 0.226662)
0.220000 0.000000 0.220000 ( 0.225962)
|