minify-html/bench/runners
Wilson Lin 289df2bad9 Add optimisation flags to Rust libraries 2022-06-22 14:24:26 +10:00
..
@minify-html%2Fnode Fix benchmark runners 2022-06-21 23:14:12 +10:00
html-minifier Fix benchmark runners 2022-06-21 23:14:12 +10:00
minify-html Add optimisation flags to Rust libraries 2022-06-22 14:24:26 +10:00
minify-html-onepass Add optimisation flags to Rust libraries 2022-06-22 14:24:26 +10:00
minimize Fix benchmark runners 2022-06-21 23:14:12 +10:00
.gitignore Fix [style] and script[type] minification; optimise attr ordering; refactor bench runners 2021-08-09 22:20:33 +10:00
README.md Allow comparison 2021-08-09 20:42:47 +10:00
common.js Fix benchmark runners 2022-06-21 23:14:12 +10:00
package.json Fix [style] and script[type] minification; optimise attr ordering; refactor bench runners 2021-08-09 22:20:33 +10:00

README.md

Benchmark runners

  • Each directory should have an executable ./build and ./run.
  • The runners should use the following environment variables:
    • MHB_ITERATIONS: times to run each input.
    • MHB_INPUT_DIR: path to directory containing inputs. Files should be read from this directory and used as the inputs.
    • MHB_HTML_ONLY: if set to 1, minify_css and minify_js should be disabled.
    • MHB_OUTPUT_DIR: if set, output minified HTML for each input in this folder.
  • The output should be a JSON array of tuples, where each tuples contains the input name, output UTF-8 byte length, iterations, and execution time in seconds (as a floating point value).
    • The execution time should be measured using high-precision monotonic system clocks where possible.