4 ms·
How does it compare to buble in terms of speed? (And yes, I realize buble does not support a variety of es2016 features).
by jeffmcmahan 9y ago
How does it compare to buble in terms of speed? (And yes, I realize buble does not support a variety of es2016 features).
- FailorTwist 9y agoThanks for asking! jazzle's feature set is currently roughly that of buble's, so I guess that won't be something jazzle will especially win at. As for speed, jazzle was about 70%-80% slower than buble, at least the buble I installed about a year ago. but please take these into consideration when comparing the two: * jazzle always tracks tdz -- buble doesn't; I'm working on a way to make tdz optional. * jazzle always records source-maps, so any comparison against other transpilers should take this into account. (as an aside, jazzle's sourcemaps are propably much smaller than buble's; there are some other tiny, cool features there too but I havenot yet found time to document them) * jazzle tracks all top-level scopes during name synthesis; buble tracks just the first, which means things like 'var a; { let a; (function() { var a$1; a; })(); }' will not compile the way it should. actually, I created a gist, https://gist.github.com/icefapper/f672b71f569b95c0c1a8e317466c1f41 https://gist.github.com/icefapper/f672b71f569b95c0c1a8e31746..., and sent its link to Rich, but never received a response; it may be that he simply did not get to scroll down enough, as I'm sure he is a very busy man. * jazzle, while fairly up and running (it can build and bundle and minify itself in slightly above 2secs on my 2011 vaio), has still a number of bottlenecks; after all, all these two years were spent to just rush it into production; with enough time (say, two months or so), I am very much confident I can make it run as fast as buble, without making any compromise on its accuracy. * these, and I would be very glad if you could help me with the benchmarking!