Skip to content

Commit 57231d4

Browse files
authored
Fix benchmark units (#5057)
My physics teacher always said that figuring out the units is the most important part. Signed-off-by: Adam Gutglick <[email protected]>
1 parent 6b80f3a commit 57231d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench-vortex/src/measurements.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ impl QueryMeasurement {
216216
} else {
217217
let mid1 = sorted_runs[len / 2 - 1];
218218
let mid2 = sorted_runs[len / 2];
219-
let avg_nanos = (mid1.as_micros() + mid2.as_nanos()) / 2;
219+
let avg_nanos = (mid1.as_nanos() + mid2.as_nanos()) / 2;
220220
Duration::new(
221221
u64::try_from(avg_nanos / 1_000_000_000).vortex_unwrap(),
222222
u32::try_from(avg_nanos % 1_000_000_000).vortex_unwrap(),

0 commit comments

Comments
 (0)