mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 19:30:47 -07:00
more opt
This commit is contained in:
committed by
Michael Go
parent
aa45356133
commit
f42c6b0608
@@ -15,7 +15,10 @@ Benchmark.ips do |x|
|
||||
puts "Running benchmark for #{x.time} seconds (with #{x.warmup} seconds warmup)."
|
||||
puts
|
||||
|
||||
x.report("parse:") { profiler.compile }
|
||||
# x.report("render:") { profiler.render }
|
||||
# x.report("parse & render:") { profiler.run }
|
||||
phase = ENV["PHASE"] || "all"
|
||||
|
||||
x.report("tokenize:") { profiler.tokenize } if phase == "all" || phase == "tokenize"
|
||||
x.report("parse:") { profiler.compile } if phase == "all" || phase == "parse"
|
||||
x.report("render:") { profiler.render } if phase == "all" || phase == "render"
|
||||
x.report("parse & render:") { profiler.run } if phase == "all" || phase == "run"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user