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

annotate minified sizes relative to smallest minification #35

Open
privatenumber opened this issue Sep 1, 2021 · 1 comment
Open

annotate minified sizes relative to smallest minification #35

privatenumber opened this issue Sep 1, 2021 · 1 comment

Comments

@privatenumber
Copy link
Owner

Request from @kzc:

  • Each "Time" is annotated with a multiplier relative to the fastest minifier

@privatenumber It'd be useful if both the Minified size and Minzipped size columns followed a similar methodology and showed a multiplier (or percentage) relative to the smallest value in the column. The current percentages relative to the original file and gzipped file sizes are not as useful.

For example, the minzipped size for d3 shows -33% 87.23 kB for uglify-js and -31% 90.63 kB for esbuild - a two percent spread in size relative to the original gzip size. But most users are interested in the relative size difference between the bundles to show how much they could be saving over the wire - in this case: 90.63 / 87.23 = 1.039x - nearly a 4% difference between the two minifiers: (90.63/87.23 - 1) * 100 = 3.90%.

846a888#commitcomment-55713496

@KuSh
Copy link
Contributor

KuSh commented Feb 23, 2023

I'm not sure it is so useful as the difference between the best and worst is generally less than 5% so multiplier would be x1.05 at max

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

No branches or pull requests

2 participants