add gzip-benchmark-minify utility script
authorRafał Pocztarski <r.pocztarski@gmail.com>
Tue, 29 Jul 2014 10:59:53 +0000 (12:59 +0200)
committerDuncan Beevers <duncan@dweebd.com>
Wed, 20 Aug 2014 20:45:21 +0000 (15:45 -0500)
gzip-benchmark-minify [new file with mode: 0755]

diff --git a/gzip-benchmark-minify b/gzip-benchmark-minify
new file mode 100755 (executable)
index 0000000..3f695ea
--- /dev/null
@@ -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
+