From ee1c23c78cf86e7f7e484c6bfb3c98b08d9c50ab Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 14 May 2021 20:23:29 +0300 Subject: minor: more useful bench --- crates/rust-analyzer/src/integrated_benchmarks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rust-analyzer/src/integrated_benchmarks.rs b/crates/rust-analyzer/src/integrated_benchmarks.rs index 56de9681c..ba2790acb 100644 --- a/crates/rust-analyzer/src/integrated_benchmarks.rs +++ b/crates/rust-analyzer/src/integrated_benchmarks.rs @@ -123,7 +123,7 @@ fn integrated_completion_benchmark() { }; { - let _it = stdx::timeit("unqualified path completion"); + let _p = profile::span("unqualified path completion"); let _span = profile::cpu_span(); let analysis = host.analysis(); let config = CompletionConfig { @@ -156,7 +156,7 @@ fn integrated_completion_benchmark() { }; { - let _it = stdx::timeit("dot completion"); + let _p = profile::span("dot completion"); let _span = profile::cpu_span(); let analysis = host.analysis(); let config = CompletionConfig { -- cgit v1.2.3