From a35be27046fd23dae674cdfe83411a4b35ea4065 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Pocztarski?= Date: Tue, 29 Jul 2014 12:59:53 +0200 Subject: [PATCH] add gzip-benchmark-minify utility script --- gzip-benchmark-minify | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 gzip-benchmark-minify 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 + -- 2.34.1