Skip to content

Commit 638f7a0

Browse files
committed
chore: correctly calculate the throughput
1 parent 421b559 commit 638f7a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libs/@local/hashql/core/benches/symbol.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ fn interning(criterion: &mut Criterion) {
112112
|bencher, &count| {
113113
let mut heap = Heap::new();
114114

115+
// pre-intern so that the dedup path is exercised
116+
for ident in IDENTIFIERS {
117+
black_box(heap.intern_symbol(ident));
118+
}
119+
115120
bencher.iter(|| {
116121
heap.reset();
117122
for _ in 0..count {

0 commit comments

Comments
 (0)