Repository navigation
codspeed: make benchmark measure less noise - #10855
Conversation
Signed-off-by: Mikhail Kot <mikhail@spiraldb.com>
e927670 to
344ee12
Compare
Merging this PR will regress 35 benchmarks3 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
This PR changes Codspeed benchmarks to measure more useful work and not noise.
dominates runtime.
from cache from second iteration if we don't do this.
insert for every iteration is not a microbenchmark).
all of them.
and bit width 16. Output is ConstantArray so specializations don't differ.
dominate shard time.
for stable measure. Move mask clone out of iteration.
4096 to 512 values (dominates run time for small take sizes). Remove
assert_array_eq, benchmark shouldn't measure correctness. Make isolated_runs
matrix smaller.
1000 elements from 10000.
measure correctness. Lower 64 test cases to 24.
array measures cache read otherwise.
dispatch dominates the runtime
array_length <= take * 8 special case.
until Sparse instead of canonicalizing.
265kb of data and are less noisy.
on first scan and subsequent iterations measures stats cached value read.
1024 list size case as counting allocations dominates the runtime.
the runtime.
compression doesn't significantly depend on dict length but rather on values
length.
every code.
expression dispatch dominates runtime with small sizes.
slice.
clone which is independent of input size.
slice case.
benchmarks.
.filter() calls .optimize() and filter is transformed to a slice.
stats.
cached stats.
out. Lower checked cases size, remove small cases which are noisy.
fresh indices.
benchmark.
Non-benchmark changes:
Primitive builder already uses it.