Skip to content

Commit

Permalink
�Visualize scaling of bundlers (#394)
Browse files Browse the repository at this point in the history
Closes #395

This implements a basic visualization of how tested bundlers scale with increasing module counts.

Test Plan:
* `git clone https://github.com/vercel/turbo-tooling --single-branch --branch benchmark-data --depth 1 turbo-tooling-benchmark-data`
* `cargo xtask summarize-benchmarks path/to/turbo-tooling-benchmark-data/data/`
* `cargo xtask visualize-bundler-benchmarks
  path/to/turbo-tooling-benchmark-data/data/ubuntu-latest-16-core.json`
* Verify svgs generated in
  `path/to/turbo-tooling/benchmark-data/data/scaling/`
* Verify bundlers use consistent colors across benchmarks with varying number of bundlers (e.g. bench hydration)

![bench_hmr_to_eval](https://user-images.githubusercontent.com/755844/191338988-1b5ff9ab-870a-49eb-8c19-2966f0900036.svg)
![bench_hydration](https://user-images.githubusercontent.com/755844/191339268-611f008a-6540-4988-8958-3658a362ec2b.svg)
![bench_restart](https://user-images.githubusercontent.com/755844/191339009-ef614f32-7be7-4824-9656-d25a249a8784.svg)
![bench_startup](https://user-images.githubusercontent.com/755844/191339025-021c7bee-7389-4e25-946b-21d6ab60237a.svg)
![bench_hmr_to_commit](https://user-images.githubusercontent.com/755844/191339174-40203fdd-6775-4c8e-b9de-26b072d8d9ed.svg)
  • Loading branch information
wbinnssmith committed Sep 20, 2022
1 parent e6acb80 commit ce7c3c4
Show file tree
Hide file tree
Showing 5 changed files with 573 additions and 4 deletions.

0 comments on commit ce7c3c4

Please sign in to comment.