MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / bench_completion_simple

Function bench_completion_simple

benches/completion.rs:292–304  ·  view source on GitHub ↗
(c: &mut Criterion)

Source from the content-addressed store, hash-verified

290// ─── Completion benchmarks ─────────────────────────────────────────────────
291
292fn 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
306fn bench_completion_deep_inheritance(c: &mut Criterion) {
307 let runtime = rt();

Callers

nothing calls this directly

Calls 4

rtFunction · 0.85
fire_completionFunction · 0.85
iterMethod · 0.80
open_fileFunction · 0.70

Tested by

no test coverage detected