nolanlawson / optimize-js

Optimize a JS file for faster parsing (UNMAINTAINED)
https://nolanlawson.github.io/optimize-js
Apache License 2.0
3.75k stars 104 forks source link

(#37) - update benchmarks to more accurately include compilation time #46

Closed nolanlawson closed 7 years ago

nolanlawson commented 7 years ago

Fixes #37.

Lots of changes in this PR, mostly revolving around improving the accuracy of the benchmarks and preparing us for a 1.0.3 release.

The good news is that optimize-js still provides a measurable benefit in Chrome, Firefox, and Edge. The bad news is that I can confirm Safari is a slight regression (~-1%), and with the new, more accurate benchmarks, we can only boast more modest improvements in various browsers (~20% in Chrome rather than ~57%).

Since my goal with optimize-js is more to provide research than to provide the tool itself, though, I'm happy to just report the data as I find it. Also there's nothing to stop us from continuing to test, continuing to tweak, and continuing to improve. :smiley:

Major changes in this PR