Skip to content

annotate minified sizes relative to smallest minification #35

Open
@privatenumber

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions