minify-html/bench/runners
Wilson Lin a28e69ddb0 Generify bench 2021-08-08 21:01:37 +10:00
..
html-minifier Generify bench 2021-08-08 21:01:37 +10:00
minify-html (Node.js) Generify bench 2021-08-08 21:01:37 +10:00
minify-html (Rust) Generify bench 2021-08-08 21:01:37 +10:00
minify-html-onepass (Rust) Generify bench 2021-08-08 21:01:37 +10:00
minimize Generify bench 2021-08-08 21:01:37 +10:00
README.md Generify bench 2021-08-08 21:01:37 +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.
  • The output should be a JSON array of pairs, where each pair represents the input name and execution time in seconds (as a floating point value).
    • The execution time should be measured using high-precision monotonic system clocks where possible.