perf — Performance Checks
$ metis perf
Runs performance checks against your project. Each check activates only when its threshold is set.
Options
| Flag | Description |
--level <quick|full> | quick = binary size only; default full (build time + size + benchmarks) |
Config-Driven Checks ([perf])
[perf]
enabled = false
build_dir = "build"
binary_path = ""
max_binary_size_mb = 0
max_build_time_sec = 0
benchmark_regex = ""
max_build_time_sec > 0 — rebuilds build_dir with --clean-first, fails if wall time exceeds the limit
binary_path + max_binary_size_mb > 0 — fails if the binary exceeds the size
benchmark_regex — runs ctest --test-dir <build_dir> -R "<regex>" --output-on-failure
Exit Codes
| Code | Meaning |
20 | Other perf failure |
21 | Binary too large |
22 | Build too slow |