mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
improved benchmark suite
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
require 'rubygems'
|
||||
require 'benchmark'
|
||||
require File.dirname(__FILE__) + '/theme_runner'
|
||||
|
||||
profiler = ThemeRunner.new
|
||||
|
||||
Benchmark.bmbm do |x|
|
||||
x.report("parse & run:") { 10.times { profiler.run(false) } }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user