Files
liquid/performance/benchmark.rb
Tobias Lutke 6b64bfb53e fix benchmarks
2012-10-28 21:37:07 -04:00

12 lines
262 B
Ruby

require 'rubygems'
require 'benchmark'
require File.dirname(__FILE__) + '/theme_runner'
profiler = ThemeRunner.new
Benchmark.bmbm do |x|
x.report("parse:") { 100.times { profiler.compile } }
x.report("parse & run:") { 100.times { profiler.run } }
end