mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
WIP
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
require 'benchmark/ips'
|
||||
require_relative 'theme_runner'
|
||||
|
||||
Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first
|
||||
case ARGV.first.to_sym
|
||||
when :lax
|
||||
Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first
|
||||
when :strict
|
||||
Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first
|
||||
when :superfluid
|
||||
require 'liquid/superfluid'
|
||||
Liquid::Template.error_mode = :strict
|
||||
end
|
||||
|
||||
profiler = ThemeRunner.new
|
||||
|
||||
Benchmark.ips do |x|
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'benchmark/ips'
|
||||
requirf 'benchmark/ips'
|
||||
require 'memory_profiler'
|
||||
require_relative 'theme_runner'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user