alexlafroscia / ember-esbuild

Ember tooling for ESBuild
12 stars 1 forks source link

Benchmarks #6

Open c-emil opened 3 years ago

c-emil commented 3 years ago

Hi and thanks for the effort you're putting into this! This looks like a promising addon and I'm already looking forward to seeing a production version of the addon. I wanted to ask whether you have some benchmark data available? How much faster is the build time using ember-cli with your addon compared to the classic build with babel? Thanks a lot.

alexlafroscia commented 3 years ago

Thanks for the comment! Unfortunately, I have no idea how much faster this really is.

The road to making this easily usable is, most likely, going to be tied to Embroider.

ember-auto-import requires that the code is processed by Babel, so at best all this addon would allow you to do is avoid processing your code with Babel twice; it'll still need to be run at least once.

Additionally, the @ember/* imports are all re-written using Babel internally, though I'm not sure if that requires fully processing the files again with Babel, or if something more performant is done there.

At this point, I don't believe that this addon works with ember-auto-import and until we can get that resolved, I'm not investing too heavily here 😕

Once I have some information, though, I'll be sure to update this thread!