mirror of
https://github.com/kemko/liquid.git
synced 2026-01-02 08:15:41 +03:00
13 lines
324 B
Ruby
13 lines
324 B
Ruby
require 'rubygems'
|
|
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
|
|
|