v8 / web-tooling-benchmark

JavaScript benchmark for common web developer workloads
https://v8.github.io/web-tooling-benchmark/
Other
438 stars 69 forks source link

Babel: thinking about how to make the benchmark more representative #27

Open hzoo opened 7 years ago

hzoo commented 7 years ago

Ref https://github.com/v8/web-tooling-benchmark/pull/24#issuecomment-345002411

These could all similarly apply for babylon itself FYI we need the bundled/concat'd uncompiled version

the current benchmark:

This benchmark runs the Babel transformation logic using the es2015 preset on a 196KiB ES2015 module containing the untranspiled Vue bundle. Note that this explicitly excludes the Babylon parser and only measures the throughput of the actual transformations. The parser is tested separately by the babylon benchmark below.

https://github.com/v8/web-tooling-benchmark/blob/21ca9e95cd2bd5c0fb6fee0c2f369922ea308a1a/src/babel-benchmark.js#L11

Right now it only tests an ES2015 module (albeit a 194kb one 👍) but that may not be representative of what the future will be like so we should think about possible changes to this benchmark:

bmeurer commented 7 years ago

Those are great suggestions, Henry, thanks a lot! The current version is mostly a one-shot prototype. Ideally the benchmark payloads would be created and driven by experts like you, who know how a representative workload for Babel looks like.