Skip to content

perf(autoresearch): vec add perf - #16

Merged
aajll merged 35 commits into
masterfrom
autoresearch/vec-add-perf-2026-05-21
May 21, 2026
Merged

aajll merged 35 commits into
masterfrom
autoresearch/vec-add-perf-2026-05-21

Conversation

@aajll

@aajll aajll commented May 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

aajll added 30 commits May 21, 2026 10:58
…25), but middle sizes unchanged — compiler doesn't vectorize memory streaming as well as reductions

Result: {"status":"keep","total_us":76280.6}
…imd forces AVX2 vectorization for memory streaming

Result: {"status":"keep","total_us":74626.1}
…67M (73774 vs 76625), 2.5x at 4M — 2 threads balance bandwidth and parallelism

Result: {"status":"keep","total_us":73774}
…e-friendly static scheduling improves over flat parallel for simd

Result: {"status":"keep","total_us":74052.1}
…ead further

Result: {"status":"keep","total_us":73886.1}
…ng next block hides memory latency

Result: {"status":"keep","total_us":73746}
…than 128K

Result: {"status":"keep","total_us":73739.2}
…n loop slightly better

Result: {"status":"keep","total_us":74111.7}
Result: {"status":"keep","total_us":73891.9}
… helps middle sizes

Result: {"status":"keep","total_us":73949.7}
…M (74074 vs 74271)

Result: {"status":"keep","total_us":74074.1}
… than safelen(2)+aligned

Result: {"status":"keep","total_us":73780}
…r at 67M (73829 vs 73996)

Result: {"status":"keep","total_us":73829.3}
…4364)

Result: {"status":"keep","total_us":73891.4}
…98) and 4M (700 vs 922)

Result: {"status":"keep","total_us":74122.8}
…7 vs 74077), but risky since malloc doesn't guarantee 32B alignment

Result: {"status":"keep","total_us":73627.9}
…s aligned(32), but 4M much better (822 vs 1020)

Result: {"status":"keep","total_us":73824.7}
…5 vs 74234) and 4M (747 vs 944) — safelen(2) optimal

Result: {"status":"keep","total_us":73805.3}
…371) and 4M (910 vs 1053)

Result: {"status":"keep","total_us":73965.3}
…(4), within noise

Result: {"status":"keep","total_us":73869.5}
…869), within noise but promising

Result: {"status":"keep","total_us":73736.5}
…len, but 1M much better (119 vs 156)

Result: {"status":"keep","total_us":73769.2}
…890), within noise but promising

Result: {"status":"keep","total_us":73803.7}
… 75387) and 16M (18092 vs 18301), but 4M worse (1089 vs 907)

Result: {"status":"keep","total_us":73842.7}
…707 vs 73910), within noise but promising

Result: {"status":"keep","total_us":73707.7}
…067) and all sizes

Result: {"status":"keep","total_us":73858.4}
…s 74360), write prefetch helps

Result: {"status":"keep","total_us":73777.8}
…852), new best!

Result: {"status":"keep","total_us":73639.6}
aajll added 5 commits May 21, 2026 12:58
…vs 73925 within noise), but 4M much better (763 vs 911)

Result: {"status":"keep","total_us":73940.1}
… 74168), new best!

Result: {"status":"keep","total_us":73644.5}
…049) and 1M (114 vs 134), but 256K worse (79 vs 56)

Result: {"status":"keep","total_us":73913.5}
…3854 vs 74241), new best for 128K blocks!

Result: {"status":"keep","total_us":73854.1}
…991) and 256K (55 vs 69), new best for aligned(32)!

Result: {"status":"keep","total_us":73775.4}
@aajll aajll changed the title Autoresearch/vec add perf 2026 05 21 perf(autoresearch): vec add perf May 21, 2026
@aajll
aajll merged commit 4c486e5 into master May 21, 2026
4 checks passed
@aajll
aajll deleted the autoresearch/vec-add-perf-2026-05-21 branch May 21, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant