Fix graphs

This commit is contained in:
Wilson Lin 2021-08-09 00:08:30 +10:00
parent 76215a297d
commit 7247f9e6e3
4 changed files with 6 additions and 3 deletions

View File

@ -57,6 +57,8 @@ jobs:
run: |
b2 authorize-account ${{ secrets.CICD_CLI_B2_KEY_ID }} ${{ secrets.CICD_CLI_B2_APPLICATION_KEY }}
./run
node graph.js
b2 sync ./graphs/ b2://${{ secrets.CICD_CLI_B2_BUCKET_NAME }}/minify-html/bench/${{ steps.version.outputs.VERSION }}/js/
MHB_HTML_ONLY=1 ./run
node graph.js
b2 sync ./graphs/ b2://${{ secrets.CICD_CLI_B2_BUCKET_NAME }}/minify-html/bench/${{ steps.version.outputs.VERSION }}/core/

View File

@ -19,8 +19,8 @@ A Rust HTML minifier meticulously optimised for speed and effectiveness, with bi
Comparison with [html-minfier](https://github.com/kangax/html-minifier) and [minimize](https://github.com/Swaagie/minimize), run on the top web pages. [See the breakdown here.](./bench)
<img width="435" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.6.0/core/average-speeds.png">
<img width="435" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.6.0/core/average-sizes.png">
<img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.6.0/core/average-speeds.png">
<img width="415" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.6.0/core/average-sizes.png">
The [onepass](https://github.com/wilsonzlin/minify-html/tree/master/rust/onepass) variant is even more optimised for speed. See its [README](https://github.com/wilsonzlin/minify-html/tree/master/rust/onepass) for more details.

View File

@ -81,6 +81,7 @@ const averageChartOptions = (label) => ({
scales: {
xAxes: [
{
barPercentage: 0.5,
gridLines: {
display: false,
},

View File

@ -12,7 +12,7 @@ done
results_dir="$PWD/results"
input_dir="$PWD/inputs"
iterations=${MHB_ITERATIONS:-100}
iterations=${MHB_ITERATIONS:-25}
mkdir -p "$results_dir"