Sha256: a363926acbd3353d2e340ac4bfbdce41c028543248912499cc692c017cad9ffd
Contents?: true
Size: 499 Bytes
Versions: 2
Compression:
Stored size: 499 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'benchmark' require 'a9n' class SampleBenchmarkApp def run 0.upto(1_000).map do |index| "#{index} #{::A9n.string_dwarf} #{::A9n.overriden_dwarf}" end end def root Pathname.new('./test_app').expand_path end def env :test end end A9n.app = SampleBenchmarkApp.new results = [] 10.times do results << Benchmark.realtime { A9n.app.run } end human_result = (results.reduce(&:+) / 10).round(4) puts human_result
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
a9n-0.8.0 | test_app/benchmark.rb |
a9n-0.7.0 | test_app/benchmark.rb |