Files
liquid/performance/benchmark.rb
2012-10-29 21:15:50 -04:00

12 lines
261 B
Ruby

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