mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
12 lines
305 B
Ruby
12 lines
305 B
Ruby
require 'benchmark'
|
|
require File.dirname(__FILE__) + '/theme_runner'
|
|
|
|
Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first
|
|
profiler = ThemeRunner.new
|
|
|
|
Benchmark.bmbm do |x|
|
|
x.report("parse:") { 100.times { profiler.compile } }
|
|
x.report("parse & run:") { 100.times { profiler.run } }
|
|
end
|
|
|