minification-benchmarks
source-map-explorer
Our great sponsors
minification-benchmarks | source-map-explorer | |
---|---|---|
15 | 4 | |
1,207 | 3,777 | |
- | - | |
9.0 | 1.1 | |
9 days ago | about 1 year ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
minification-benchmarks
-
Extremely reducing the size of NPM package
Minifiers are used to reduce the size of the bundle. They can remove unused code, shorten expressions, and so on. And Now there are already several popular minifiers, and they continue to appear: more familiar ones - written in JavaScript - Terser and UglifyJS, even Babel has its own version of the minifier, there are also more modern SWC (written in Rust) and ESBuild (written in Go), and a bunch of other lesser-known minifiers. And I recommend you to look at this repository. It contains up-to-date test results of various popular minifiers.
-
Minify and Gzip (2022)
This minify/gzip size effect is a well known quirk to developers of javascript minifiers. The minifier's symbol mangling algorithm often has a more pronounced effect than does advanced AST optimization.
This website has real life data on the matter for popular libraries:
* https://github.com/privatenumber/minification-benchmarks
Compare the trophies indicating smallest size for Minified versus Minzipped (gzip). Generally the smallest minified size yields the smallest minified+gzip size, but there are some notable anomolies outside the range of statistical noise. It is not practical for a javascript minifier to take a compression algorithm into account - it would blow up the minify timings exponentially.
-
Bun v0.6.0 โ Bun's new JavaScript bundler and minifier
It would be helpful to see how Bun's minifier compares to the others with popular libraries:
https://github.com/privatenumber/minification-benchmarks
-
JS Uglify/Minify Gems?
JavaScript
-
Overview of the next-gen frontend dev tools
There are many minifiers such as terser and uglify. But, because minifying also require to parse the JS, it is actually possible to use esbuild and SWC to minify the code. Here's a benchmark of the main minifiers.
-
Overworld 1.0 is Live
Here's a comparison showing the major players with comparable stats at first glance. https://github.com/privatenumber/minification-benchmarks
-
Is anyone using Google Closure Compiler? And why not?
https://esbuild.github.io/ https://github.com/privatenumber/minification-benchmarks
- Parcel v2
- I never need webpack or babel anymore
-
๐งข Stefan's Web Weekly #6
privatenumber/minification-benchmarks โ JS minification benchmarks: babel-minify, esbuild, terser, uglify-js
source-map-explorer
-
Linen.dev: The 500KB Slack Alternative
I use source-map-explorer to see what's inside. Lighthouse Treemap provides a similar view.
[source-map-explorer]: https://github.com/danvk/source-map-explorer
[Lighthouse Treemap]: https://umaar.com/dev-tips/270-devtools-lighthouse-treemap/
-
Help, my Angular bundle is growing!
Among others source-map-explorer is exactly such a tool and describes itself as such:
-
Hey guys, how do you normally optimize the loading speed for your Angular app?
You must be pulling in a big library. Have you run source map explorer? Your path forward is going to depend on the results. Maybe one of:
-
Any suggestions to decrease build size?
its npm package source-map-explorer npm install -g source-map-explorer after installing run below commands ng build --configuration production --source-map sme www/**/*.js
What are some alternatives?
vite - Next generation frontend tooling. It's fast!
esbuild-loader - Webpack loader for esbuild: Speed up your build โก๏ธ
esbuild - An extremely fast bundler for the web
Angular - Deliver web apps with confidence ๐
terser - ๐ JavaScript parser, mangler and compressor toolkit for ES6+
Ionic Framework - A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
mocha-esbuild - Run tests with mocha compiled by esbuild
angular-performance-checklist - โก Cheatsheet for developing lightning fast progressive Angular applications
fjb - fast javascript bundler :package:
AnswerOverflow - Indexing Discord Help Channel Questions into Google
estrella - Lightweight and versatile build tool based on the esbuild compiler
homepage - The homepage of Phosphor Icons, a flexible icon family for everyone