(c: &mut Criterion)
| 290 | // ─── Completion benchmarks ───────────────────────────────────────────────── |
| 291 | |
| 292 | fn bench_completion_simple(c: &mut Criterion) { |
| 293 | let runtime = rt(); |
| 294 | let backend = Backend::new_test(); |
| 295 | let uri = runtime.block_on(open_file( |
| 296 | &backend, |
| 297 | "file:///bench_simple.php", |
| 298 | SIMPLE_CLASS_SOURCE, |
| 299 | )); |
| 300 | |
| 301 | c.bench_function("completion_simple_class", |b| { |
| 302 | b.iter(|| runtime.block_on(fire_completion(&backend, &uri, 5, 4))) |
| 303 | }); |
| 304 | } |
| 305 | |
| 306 | fn bench_completion_deep_inheritance(c: &mut Criterion) { |
| 307 | let runtime = rt(); |
nothing calls this directly
no test coverage detected