Sha256: 8842380539313ae7f1805e42fed2aa5aba559cbfa0a66f65f62d5274da7303ba
Contents?: true
Size: 495 Bytes
Versions: 5
Compression:
Stored size: 495 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_foo} #{::A9n.overriden_foo}" 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
a9n-0.10.0 | test_app/benchmark.rb |
a9n-0.9.1 | test_app/benchmark.rb |
a9n-0.9.0 | test_app/benchmark.rb |
a9n-0.8.3 | test_app/benchmark.rb |
a9n-0.8.2 | test_app/benchmark.rb |