pub fn assert_performance_budget(
metrics: &Value,
max_load_ms: f64,
max_heap_mb: f64,
)Expand description
Assert that all performance metrics are within budget.
§Panics
Panics if load time exceeds max_load_ms or heap usage exceeds max_heap_mb.
§Examples
use serde_json::json;
let metrics = json!({
"navigation": {"load_event_ms": 450.0},
"js_heap": {"used_mb": 12.5}
});
victauri_test::assert_performance_budget(&metrics, 1000.0, 50.0);