Files
liquid/performance/benchmark.rb
2013-03-19 18:30:09 -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