css / csso

CSS minifier with structural optimizations
https://css.github.io/csso/csso.html
MIT License
3.74k stars 189 forks source link

`{ restructuring: true }` performs worse in both speed and size (after compression) benchmarks #432

Open tbjgolden opened 3 years ago

tbjgolden commented 3 years ago

Ran some benchmarks against different minifiers and discovered that the restructuring can actually perform worse after compression, and even if it sometimes is better - it runs much slower.

Source: https://gist.github.com/tbjgolden/03e4f4a15c25ed10b6bf76122c352224

Two main points:


some added context: general purpose compression is used on 85% of websites according to: https://w3techs.com/technologies/details/ce-compression