This folder contains scripts used to test the performance and effectiveness of minify-html, for guided optimisation and/or comparisons.
It also contains a set of common web pages as inputs for benchmarking.
Each minifier is run against each file in the inputs folder, which are HTML pages fetched from popular websites:
File name | URL |
---|---|
Amazon | https://www.amazon.com/ |
BBC | https://www.bbc.co.uk/ |
Bootstrap | https://getbootstrap.com/docs/3.4/css/ |
Bing | https://www.bing.com/ |
Coding Horror | https://blog.codinghorror.com/ |
ECMA-262 | https://www.ecma-international.org/ecma-262/10.0/index.html |
https://www.google.com/ | |
Hacker News | https://news.ycombinator.com/ |
NY Times | https://www.nytimes.com/ |
https://www.reddit.com/ | |
Stack Overflow | https://www.stackoverflow.com/ |
https://twitter.com/ | |
Wikipedia | https://en.wikipedia.org/wiki/Soil |
Note that these pages are already mostly minified.
For more information on how the inputs are fetched, see fetch.js.
On this project's README, average graphs are shown. Graphs showing per-input results are shown below:
Results depend on the input, so charts show performance relative to minify-html as a percentage.
Run build to build the minifiers.
Run run to benchmark each HTML minifier against each input and output the results to the results
folder.
Run graph.js to render graphs to the graphs
folder.