Kurt StephensNerd Up! | ||||
archivesRuby: Performance of Symbol Construction
Measurements of Symbol Constructor Expressions. n=10_000_000 ruby 1.8.6 (2008-08-08 patchlevel 286) [i686-linux]:
> /cnu/bin/ruby symbol_benchmark.rb
user system total real
Null Test 0.740000 0.000000 0.740000 ( 0.742914)
'foo_bar' 1.670000 0.000000 1.670000 ( 1.661374)
"foo_bar" 1.620000 0.000000 1.620000 ( 1.625221)
:foo_bar 0.890000 0.000000 0.890000 ( 0.886903)
:'foo_bar' 0.880000 0.000000 0.880000 ( 0.878555)
<br class="clear" />
|
||||
Recent comments
17 hours 53 min ago
2 days 5 hours ago
3 days 30 min ago
3 days 14 hours ago
5 days 4 hours ago
5 days 7 hours ago
1 week 8 hours ago
1 week 1 day ago
1 week 1 day ago
3 weeks 15 hours ago