Repository navigation
fix: label sizes in KiB and MiB, the units the tool divides by - #64
Merged
Merged
Conversation
The table and the HTML report divided sizes and memory by 1024 but labelled them KB and MB, the decimal units that a --target-bytes budget such as 50KB is given in. They now read KiB and MiB; the figures themselves are unchanged, and the README examples are relabelled to match.
Codec comparison ✅ no size or quality regression📥 Download the codec report (unzip and open Size check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The comparison table and the HTML report divide file sizes and peak memory by 1024, but labelled them
KBandMB. Those are the decimal units a--target-bytesbudget such as50KB(50,000 bytes) is given in, so a 30 KB budget run could show a file as "29.3 KB" when it held 30,000 bytes.KiBandMiB. The values are unchanged.Testing
node --test: 130 pass, 2 codec-gated skips.cid22-friends.pngwith--html, and the report rendered in headless Chrome: onlyKiB/MiBfigures remain.