Skip to content
Veloce Docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Run the benchmarks

Recipe for reproducing every performance number.

Run the benchmarks

Problem: reproduce the framework’s performance claims on your machine.

Steps:

  1. Run the criterion suite:
cargo bench -p veloce --bench frame
  1. Read frame_cost/children/{10,100,500,2000} for per-frame render cost and cold_boot_first_frame for boot time.
  2. Run the process probes:
cargo test -p veloce-runtime --test perf -- --nocapture
cargo test -p veloce-runtime --test dispatch -- --nocapture
  1. Compare COLD_BOOT_MS, IDLE_RSS_KIB, and KEY_LATENCY_P95_US against the budgets in Benchmarks.

Note: per-frame cost scales with child count (see the honest caveat on the Benchmarks page) — record your machine’s numbers before comparing.

Was this page helpful?