Note: this is a temporary solution for anyone who would like to see statistics of minification+gzipping vs. just gzipping the HTML before the gzipped stats are properly integrated into the main benchmark.
How to run the benchmarks from https://github.com/rsp/html-minifier/tree/gzip-benchmark
Clone the repo:
git clone https://github.com/rsp/html-minifier.git
cd html-minifier
Use the gzip-benchmark branch:
git checkout gzip-benchmark
Install or link dependencies:
npm install
Run benchmarks for minified HTML:
node benchmark.js
Run benchmarks for minified and gzipped HTML:
node gzip-benchmark.js
Could you post screens of the tables? I get a type error when running gzip-benchmark.js.
TypeError: Cannot read property 'size' of undefined
at d:\Projects\html-minifier\gzip-benchmark.js:60:29
at Object.oncomplete (fs.js:107:15)