mirror of
https://github.com/kemko/liquid.git
synced 2026-01-03 08:45:42 +03:00
12 lines
262 B
Ruby
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
|
|
|