Improve bench

This commit is contained in:
Wilson Lin 2021-08-09 19:24:43 +10:00
commit 7d5ba5033b
6 changed files with 67 additions and 98 deletions

1
debug/diff/README.md Normal file
View file

@ -0,0 +1 @@
[compare.sh](./compare.sh) is a useful script for viewing a character-by-character diff between the minified outputs of minify-html and html-minifier for a specific test. Pass the test's file name as the first argument.

1
debug/prof/README.md Normal file
View file

@ -0,0 +1 @@
Profiling minify-html can be done on Linux by using [profile.sh](./profile.sh), which uses `perf`. The generated report can be used using `perf report`.