From: Rafał Pocztarski Date: Tue, 29 Jul 2014 10:59:53 +0000 (+0200) Subject: add gzip-benchmark-minify utility script X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=a35be27046fd23dae674cdfe83411a4b35ea4065;p=html-minifier.git add gzip-benchmark-minify utility script --- diff --git a/gzip-benchmark-minify b/gzip-benchmark-minify new file mode 100755 index 0000000..3f695ea --- /dev/null +++ b/gzip-benchmark-minify @@ -0,0 +1,9 @@ +#!/bin/bash +[ "$1" == "" ] && echo "Use: node gzip-benchmark.js" >&2 && exit 1 +fileName=$1 +filePath=benchmarks/$fileName.html +gzFilePath=$filePath.gz +minifedGzFilePath=benchmarks/$fileName.min.html.gz +gzip -9 < $filePath > $gzFilePath +./cli.js $filePath -c benchmark.conf | gzip -9 > $minifedGzFilePath +