Add benchmark for compression disabled

A quick benchmark now shows build performance without compression,
with compression, and with blanklines compression:

Build:            0.000000   0.000000   0.480000 (  0.493244)
Compress:         0.000000   0.000000   6.650000 (  6.657062)
Blanklines:       0.000000   0.000000  10.230000 ( 10.248840)
pull/75/head
Jonathan Vollebregt 7 years ago
parent ded78f8bfc
commit 446cd7e027
  1. 3
      Rakefile
  2. 6
      performance/_config.yml
  3. 6
      performance/_config_compress.yml

@ -30,7 +30,8 @@ task :performance => BUILD_FILE do
require "benchmark"
Dir.chdir "performance" do
buildtimes = [
"Build:\t\t" + Benchmark.measure { sh "bundle exec jekyll build" }.to_s,
"Build:\t\t" + Benchmark.measure { sh "JEKYLL_ENV=performance bundler exec jekyll build" }.to_s,
"Compress:\t" + Benchmark.measure { sh "bundle exec jekyll build --config _config_compress.yml" }.to_s,
"Blanklines:\t" + Benchmark.measure { sh "bundle exec jekyll build --config _config_blanklines.yml" }.to_s
]
puts buildtimes

@ -1,6 +1,4 @@
source: source
compress_html:
clippings: [div]
comments: ["<!-- ", " -->"]
endings: [li, dt, dd, p, thead, tbody, tr, td, th]
profile: true
ignore:
envs: [performance]

@ -0,0 +1,6 @@
source: source
compress_html:
clippings: [div]
comments: ["<!-- ", " -->"]
endings: [li, dt, dd, p, thead, tbody, tr, td, th]
profile: true
Loading…
Cancel
Save