File tree Expand file tree Collapse file tree 5 files changed +46
-3
lines changed
Expand file tree Collapse file tree 5 files changed +46
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,11 @@ erubi_rails:
1010hexapdf :
1111 desc : hexapdf benchmarks the hexapdf Ruby gem by line-wrapping The Odyssey with specific line-length and font.
1212 category : headline
13+ liquid-compile :
14+ desc : compiles a chosen-for-profiling Liquid theme repeatedly.
15+ category : headline
1316liquid-render :
14- desc : liquid-render renders a chosen-for-profiling Liquid theme repeatedly.
17+ desc : renders a chosen-for-profiling Liquid theme repeatedly.
1518 category : headline
1619mail :
1720 desc : mail tests the Mail gem by repeatedly creating an email from a text file and converting it to a string for sending.
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ source "https://rubygems.org"
4+ git_source ( :github ) do |repo_name |
5+ "https://github.com/#{ repo_name } .git"
6+ end
7+
8+ # Use `gem github:` to also get the performance/ directory
9+ gem "liquid" , github : "Shopify/liquid" , ref : "v5.4.0"
Original file line number Diff line number Diff line change 1+ GIT
2+ remote: https://github.com/Shopify/liquid.git
3+ revision: 4d4a565e98c1dda099df1fddf80e293f768cda29
4+ ref: v5.4.0
5+ specs:
6+ liquid (5.4.0 )
7+
8+ GEM
9+ remote: https://rubygems.org/
10+ specs:
11+
12+ PLATFORMS
13+ ruby
14+ x86_64-linux
15+
16+ DEPENDENCIES
17+ liquid !
18+
19+ BUNDLED WITH
20+ 2.3.26
Original file line number Diff line number Diff line change 1+ require 'harness'
2+
3+ Dir . chdir __dir__
4+ use_gemfile
5+
6+ require 'liquid'
7+ liquid_lib_dir = $LOAD_PATH. detect { |p | File . exist? ( File . join ( p , "liquid.rb" ) ) }
8+ require File . join ( File . dirname ( liquid_lib_dir ) , "performance/theme_runner" )
9+
10+ run_benchmark ( 150 ) do
11+ profiler = ThemeRunner . new
12+ profiler . compile
13+ end
Original file line number Diff line number Diff line change 77liquid_lib_dir = $LOAD_PATH. detect { |p | File . exist? ( File . join ( p , "liquid.rb" ) ) }
88require File . join ( File . dirname ( liquid_lib_dir ) , "performance/theme_runner" )
99
10- Liquid ::Template . error_mode = ARGV . first . to_sym if ARGV . first
1110profiler = ThemeRunner . new
12-
1311profiler . compile
1412
1513run_benchmark ( 150 ) do
You can’t perform that action at this time.
0 commit comments