Rust
and Deno
(optional) beforehand.Make.zsh
for example usages. The following is summary:Checkout:
shell
git clone https://github.com/google/webbundle.git`
Generate the modules and the benchmarks.
Example:
shell
cd webbundle/webbundle-bench
cargo run --release -- --out out --depth 4 --branches 4
See build()
in Make.zsh
.
Start webserver.
Example:
shell
cd ../webbundle-server
cargo build --release
cd ../webbundle-bench
RUST_LOG=error ../target/release/webbundle-server --port 8080
See run_webserver()
in Make.zsh
.
Open http://localhost:8080/out/index.html
in your browser, and click each benchmark.
(Optional) Run the benchmark using puppeteer for automation:
shell
deno run --allow-all ./run-bench.ts --port 8080
See bench()
in Make.zsh
.
webbundle-bench
is inspired by
js-modules-benchmark
.
webbundle-bench
is rewritten with Rust and Deno so we don't depend on Python and Node.js, and supports very minimum features which are necessary to benchmark Web Bundle loading performance.
webbundle-bench
is missing many features at this point:
modulepreload
.rollup
)