GithubHelp home page GithubHelp logo

doytsujin / minification-benchmarks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from privatenumber/minification-benchmarks

0.0 1.0 0.0 324 KB

JS minification benchmarks

License: MIT License

JavaScript 100.00%

minification-benchmarks's Introduction

Minification benchmarks

Results

d3/dist/d3

  • File node_modules/d3/dist/d3.js
  • Size 503.62 KB
  • Gzip size 118.51 KB
Minifier Size Gzip size Time
babel-minify - default ๐Ÿฅ 240.19 KB (47%) 80.38 KB (67%) ๐Ÿข 6256.99ms
esbuild 245.73 KB (48%) ๐Ÿท 82.45 KB (69%) ๐Ÿ‡ 52.25ms
terser - default 243.04 KB (48%) 79.66 KB (67%) 2046.86ms
terser - no compress ๐Ÿท 249.9 KB (49%) 80.89 KB (68%) 789.61ms
uglify-js - default 241.46 KB (47%) ๐Ÿฅ 79.2 KB (66%) 3214.68ms
uglify-js - no compress 249.56 KB (49%) 80.29 KB (67%) 550.35ms

jquery

  • File node_modules/jquery/dist/jquery.js
  • Size 280.89 KB
  • Gzip size 82.74 KB
Minifier Size Gzip size Time
babel-minify - default 90.23 KB (32%) 31.19 KB (37%) ๐Ÿข 2156.33ms
esbuild 88.71 KB (31%) ๐Ÿท 31.56 KB (38%) ๐Ÿ‡ 24.99ms
terser - default 87.9 KB (31%) 30.46 KB (36%) 725.31ms
terser - no compress ๐Ÿท 92.79 KB (33%) 31.15 KB (37%) 246.19ms
uglify-js - default ๐Ÿฅ 87.05 KB (30%) ๐Ÿฅ 30.29 KB (36%) 1027.26ms
uglify-js - no compress 92.05 KB (32%) 30.84 KB (37%) 182.69ms

lodash

  • File node_modules/lodash/lodash.js
  • Size 529.85 KB
  • Gzip size 94.54 KB
Minifier Size Gzip size Time
babel-minify - default 70.25 KB (13%) 24.66 KB (26%) ๐Ÿข 1518.76ms
esbuild 70.31 KB (13%) ๐Ÿท 25.81 KB (27%) ๐Ÿ‡ 28.59ms
terser - default 71.6 KB (13%) 24.47 KB (25%) 582.16ms
terser - no compress ๐Ÿท 74.01 KB (13%) 25.64 KB (27%) 301.95ms
uglify-js - default ๐Ÿฅ 68.32 KB (12%) ๐Ÿฅ 24.06 KB (25%) 960.98ms
uglify-js - no compress 73.46 KB (13%) 25.2 KB (26%) 183.54ms

moment

  • File node_modules/moment/moment.js
  • Size 169.75 KB
  • Gzip size 35.7 KB
Minifier Size Gzip size Time
babel-minify - default 57.83 KB (34%) 18.33 KB (51%) ๐Ÿข 1067.56ms
esbuild 58.78 KB (34%) 19.05 KB (53%) ๐Ÿ‡ 18.99ms
terser - default 57.8 KB (34%) 18.24 KB (51%) 417.32ms
terser - no compress ๐Ÿท 61.79 KB (36%) ๐Ÿท 19.25 KB (53%) 150.88ms
uglify-js - default ๐Ÿฅ 57.41 KB (33%) ๐Ÿฅ 18.16 KB (50%) 623.99ms
uglify-js - no compress 61.51 KB (36%) 19.1 KB (53%) 116.31ms

react/cjs/react.development.js

  • File node_modules/react/cjs/react.development.js
  • Size 59.22 KB
  • Gzip size 16.1 KB
Minifier Size Gzip size Time
babel-minify - default 19.4 KB (32%) 7.03 KB (43%) ๐Ÿข 234.25ms
esbuild 19.72 KB (33%) 7.21 KB (44%) ๐Ÿ‡ 10.22ms
terser - default 19.11 KB (32%) 6.99 KB (43%) 115.43ms
terser - no compress ๐Ÿท 20.71 KB (34%) ๐Ÿท 7.34 KB (45%) 40.08ms
uglify-js - default ๐Ÿฅ 18.7 KB (31%) ๐Ÿฅ 6.83 KB (42%) 210.33ms
uglify-js - no compress 20.46 KB (34%) 7.15 KB (44%) 31.08ms

terser

  • File node_modules/terser/dist/bundle.min.js
  • Size 778.21 KB
  • Gzip size 155.79 KB
Minifier Size Gzip size Time
babel-minify - default โš ๏ธ Failed โš ๏ธ Failed โš ๏ธ Failed
esbuild 357.53 KB (45%) ๐Ÿท 104.22 KB (66%) ๐Ÿ‡ 51.66ms
terser - default ๐Ÿฅ 355.1 KB (45%) ๐Ÿฅ 101.15 KB (64%) ๐Ÿข 1714.34ms
terser - no compress ๐Ÿท 367.96 KB (47%) 101.82 KB (65%) 679.86ms
uglify-js - default โš ๏ธ Failed โš ๏ธ Failed โš ๏ธ Failed
uglify-js - no compress โš ๏ธ Failed โš ๏ธ Failed โš ๏ธ Failed

vue/dist/vue.runtime.common.dev

  • File node_modules/vue/dist/vue.runtime.common.dev.js
  • Size 217.93 KB
  • Gzip size 60.81 KB
Minifier Size Gzip size Time
babel-minify - default 93.04 KB (42%) 30.77 KB (50%) ๐Ÿข 1209.13ms
esbuild 93.43 KB (42%) 31.28 KB (51%) ๐Ÿ‡ 24.01ms
terser - default 92.77 KB (42%) ๐Ÿฅ 30.59 KB (50%) 404.34ms
terser - no compress ๐Ÿท 98.89 KB (45%) 31.4 KB (51%) 219.51ms
uglify-js - default ๐Ÿฅ 92.23 KB (42%) 30.59 KB (50%) 774.89ms
uglify-js - no compress 98.68 KB (45%) ๐Ÿท 31.4 KB (51%) 150.34ms

minification-benchmarks's People

Contributors

privatenumber avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.