Closed sirenkovladd closed 5 months ago
Thanks a lot for your contribution! Just made things a bit faster, disabled mangle
and conditions
by default, and fixed a bunch of bugs, here is current results:
Time in ms
ββββββββββββ¬ββββββ¬ββββββββββ¬βββββββββ¬ββββββββββββββββββ
β (index) β bun β esbuild β terser β @putout/minify β
ββββββββββββΌββββββΌββββββββββΌβββββββββΌββββββββββββββββββ€
β react β 8 β 40 β 126 β 518 β
β solidjs β 9 β 40 β 152 β 1931 β
β lodash β 13 β 48 β 329 β 14602 β
β vue β 16 β 54 β 539 β 71395 β
β angular β 14 β 53 β 495 β 50204 β
β jquery β 11 β 45 β 289 β 10727 β
β example1 β 7 β 38 β 66 β 170 β
ββββββββββββ΄ββββββ΄ββββββββββ΄βββββββββ΄ββββββββββββββββββ
Size in bytes
ββββββββββββ¬ββββββββββββββββββββ¬ββββββββββββββββββββ¬ββββββββββββββββββββ¬βββββββββββββββββββ¬βββββββββββββββββββ
β (index) β original β bun β esbuild β terser β @putout/minify β
ββββββββββββΌββββββββββββββββββββΌββββββββββββββββββββΌββββββββββββββββββββΌβββββββββββββββββββΌβββββββββββββββββββ€
β react β '10751 (100.0%)' β '10553 (98.2%)' β '10644 (99.0%)' β '10391 (96.7%)' β '10098 (93.9%)' β
β solidjs β '28537 (100.0%)' β '21888 (76.7%)' β '20553 (72.0%)' β '28202 (98.8%)' β '27648 (96.9%)' β
β lodash β '73015 (100.0%)' β '72551 (99.4%)' β '72189 (98.9%)' β '70751 (96.9%)' β '70754 (96.9%)' β
β vue β '196075 (100.0%)' β '196443 (100.2%)' β '193091 (98.5%)' β '195200 (99.6%)' β '192403 (98.1%)' β
β angular β '177368 (100.0%)' β '178187 (100.5%)' β '177834 (100.3%)' β '176388 (99.4%)' β '173589 (97.9%)' β
β jquery β '87533 (100.0%)' β '87451 (99.9%)' β '87119 (99.5%)' β '86958 (99.3%)' β '86050 (98.3%)' β
β example1 β '861 (100.0%)' β '512 (59.5%)' β '502 (58.3%)' β '501 (58.2%)' β '518 (60.2%)' β
ββββββββββββ΄ββββββββββββββββββββ΄ββββββββββββββββββββ΄ββββββββββββββββββββ΄βββββββββββββββββββ΄βββββββββββββββββββ
Amazing
Just speed up the mangle
, and set fixCount=1
, so now it looks like this:
Time in ms
ββββββββββββ¬ββββββ¬ββββββββββ¬βββββββββ¬βββββββββββββββββ
β (index) β bun β esbuild β terser β @putout/minify β
ββββββββββββΌββββββΌββββββββββΌβββββββββΌβββββββββββββββββ€
β react β 8 β 40 β 123 β 593 β
β solidjs β 9 β 40 β 155 β 3817 β
β lodash β 13 β 50 β 330 β 33121 β
β vue β 17 β 55 β 525 β 160834 β
β angular β 15 β 57 β 523 β 111926 β
β jquery β 11 β 45 β 290 β 24202 β
β example1 β 7 β 42 β 68 β 143 β
ββββββββββββ΄ββββββ΄ββββββββββ΄βββββββββ΄βββββββββββββββββ
Size in bytes
ββββββββββββ¬ββββββββββββββββββββ¬ββββββββββββββββββββ¬ββββββββββββββββββββ¬βββββββββββββββββββ¬βββββββββββββββββββ
β (index) β original β bun β esbuild β terser β @putout/minify β
ββββββββββββΌββββββββββββββββββββΌββββββββββββββββββββΌββββββββββββββββββββΌβββββββββββββββββββΌβββββββββββββββββββ€
β react β '10751 (100.0%)' β '10553 (98.2%)' β '10644 (99.0%)' β '10391 (96.7%)' β '10096 (93.9%)' β
β solidjs β '28537 (100.0%)' β '21888 (76.7%)' β '20553 (72.0%)' β '28202 (98.8%)' β '21962 (77.0%)' β
β lodash β '73015 (100.0%)' β '72551 (99.4%)' β '72189 (98.9%)' β '70751 (96.9%)' β '70794 (97.0%)' β
β vue β '196075 (100.0%)' β '196443 (100.2%)' β '193091 (98.5%)' β '195200 (99.6%)' β '192231 (98.0%)' β
β angular β '177368 (100.0%)' β '178187 (100.5%)' β '177834 (100.3%)' β '176388 (99.4%)' β '173584 (97.9%)' β
β jquery β '87533 (100.0%)' β '87451 (99.9%)' β '87119 (99.5%)' β '86958 (99.3%)' β '85968 (98.2%)' β
β example1 β '861 (100.0%)' β '512 (59.5%)' β '502 (58.3%)' β '501 (58.2%)' β '496 (57.6%)' β
ββββββββββββ΄ββββββββββββββββββββ΄ββββββββββββββββββββ΄ββββββββββββββββββββ΄βββββββββββββββββββ΄βββββββββββββββββββ
Fixed: https://github.com/putoutjs/minify/issues/25
npm run fix:lint
is OKnpm test
is OK