Repository navigation
perf: Add AVX2 SIMD acceleration for power-of-two Hadamard transform - #119064
Conversation
|
Workflow [PR], commit [185779f] Summary: ✅
AI ReviewSummaryThis PR adds an Final Verdict
LLVM Coverage ReportMeasured on commit 185779f.
Changed lines: Changed C/C++ lines covered: 54/62 (87.10%) · Uncovered code |
b011515 to
98f49d4
Compare
98f49d4 to
8fa4e74
Compare
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units8 translation units recompiled, 9 s compile time in total, 8 of them have a recent master baseline. |
|
📊 Cloud Performance Report ✅ AI verdict: This PR adds an AVX2 fast Walsh-Hadamard kernel used only by randomHadamardTransform and vector quantization; none of the flagged ClickBench queries (Q28, Q33, Q34) call that code path, so the changed code cannot execute during these queries. Q28's +6.9% is on an intrinsically noisy query with disagreeing tests, and Q33/Q34's +5.6% deltas both land inside master's current variance band. All three flags are downgraded to not_sure as run-to-run variance rather than a real PR effect. The envelope suppressions on Q33/Q34 are consistent with the diff, which touches no ClickBench execution path. clickbenchFlagged queries (3 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
8b7690f to
cfbd06b
Compare
cfbd06b to
bddac79
Compare
…for dimension >= 64
bddac79 to
185779f
Compare
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Speed up FWHT kernels using AVX2 SIMD instructions (~28.6% higher throughput, 22.5% lower median latency).
Detailed Description
This PR adds AVX2 SIMD optimizations for FWHT (Fast Walsh-Hadamard Transform) kernels:
Testing
Benchmark Environment
clickhouse-benchmarkBenchmark Results
Ran 10,000 queries using
clickhouse-benchmarkonlocalhost:9000to compare the scalar baseline against the AVX2 SIMD implementation:1. Throughput Comparison
2. Latency Percentiles Comparison
Workflow [PR]
Sync PR [sync-upstream/pr/119064]