Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch code size benchmark to use fflate #411

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

timostamm
Copy link
Member

@timostamm timostamm commented Mar 1, 2023

This switches the code size benchmark to use fflate instead of the Node.js zlib module.

We have seen slight variance of a couple of bytes between runs with the zlib module, and fflate will hopefully produce stable numbers. This allows us to enable diffchecks on the results, so that CI can ensure the report is always current.

This switches the benchmark to use gzip compression instead of brotli, increasing the values for both libraries tested, but keeping the relative difference within a percentage point. Gzip is still widely used, so using it in the benchmark is not unrealistic.

@timostamm timostamm requested a review from smaye81 March 1, 2023 15:48
@timostamm timostamm marked this pull request as ready for review March 1, 2023 15:54
@timostamm timostamm merged commit 0c32c8b into main Mar 1, 2023
@timostamm timostamm deleted the tstamm/code-size-bench-with-fflate branch March 1, 2023 17:32
timostamm added a commit that referenced this pull request Mar 31, 2023
We have moved from brotli via zlib to gzip `fflate`, a pure JS implementation in #411.

It allowed us to run diffchecks in CI on the results, but it forced us to use gzip instead of brotli. This PR switches back to brotli, but with a JS implementation instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants