Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

rustwasm/wasm-weight-tracker

Rust and WebAssembly Weight Tracker

The purpose of this repository is to track the size of Rust and WebAssembly generated files over time. This is a pretty broad peroggative, but the goal is currently to:

  • Watch "interesting" metrics of file size when graphed over time
  • Help detect both regressions and improvements, allowing us to diagnose what happened
  • In the case of regressions, quickly see the impact, evaluate the cause, and take appropriate action.

Running a benchmark locally

You can run a benchmark locally with:

$ cargo run --bin collector -- measure out.json $bench1 $bench2 ...

This will dump relevant data into out.json for all of the benchmarks that are executed.

Building the site locally

You can build the website locally with:

$ cargo run --bin site -- --git tmpdir html/data.json

and afterwards you can host the file in the html folder with your favorite static file serving utility (like python -m SimpleHTTPServer or http) and browse the website.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Tracking Rust and WebAssembly sizes over time

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published