add stage4 constraint - ease-of-minification

kai zhu kaizhu256 at gmail.com
Thu Feb 14 19:34:14 UTC 2019


> I just have a copy of  npm\node_modules\google-closure-compiler/compiler.jar


good to know.  also, the previous benchmark was misleading, because terser didn’t mangle by default [1]. with mangling, its performance is inline:

```shell

npm install google-closure-compiler terser uglifyjs-lite
curl -O https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.js <https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.js>
npx google-closure-compiler jquery.js > jquery.min.google <http://jquery.min.google/>-closure-compiler.js 2>/dev/null
npx uglifyjs-lite jquery.js > jquery.min.uglifyjs-lite.js 2>/dev/null
npx terser jquery.js -m > jquery.min.terser-mangled.js
npx terser jquery.js -c -m > jquery.min.terser-compressed-mangled.js 2>/dev/null
npx terser jquery.js -c -m --mangle-props > jquery.min.terser-compressed-props-mangled.js 2>/dev/null
ls -lS jquery.*
  271751 Feb 14 13:12 jquery.js
   91350 Feb 14 13:24 jquery.min.terser-mangled.js
   89845 Feb 14 13:24 jquery.min.google <http://jquery.min.google/>-closure-compiler.js
   88681 Feb 14 13:24 jquery.min.uglifyjs-lite.js
   86478 Feb 14 13:24 jquery.min.terser-compressed-mangled.js
   79896 Feb 14 13:24 jquery.min.terser-compressed-props-mangled.js


```
[1] https://github.com/terser-js/terser/issues/266 <https://github.com/terser-js/terser/issues/266>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190214/09409765/attachment-0001.html>


More information about the es-discuss mailing list