PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/benchmarks/benchmark.rb

http://github.com/ippa/chingu
Ruby | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 841f0b90e7384f6dc87491386eecf626 MD5 | raw file
Possible License(s): LGPL-2.1
1require 'benchmark'
2Benchmark.bm do |b|
3  range = 1..10000
4  b.report("Object") {range.each {Object.new}}
5  b.report("BasicObject") {range.each {Array.new}}
6end