linebender / linebender/fearless_simd

Snapshot tests for the assembly output

Open
#100 1 comment 6 reactions 1 assignee View on GitHub

@ajakubowicz-canva is already working on this.

Since Oct 5, 2025.

Dominant language
Rust
Stars
457
Forks
30
Avg merge
1d 10h
Merged PRs (30d)
25

Description

Context: #simd > Is there an Array copy cost? @ 💬

Since fearless_simd is trying to be extremely performant, this issue is a proposal for assembly snapshot tests.

A common approach to debugging performance with fearless_simd is to compile out some function and check that it's been appropriately optimized. My proposal is to lightly automate this with "goldens". We create a corpus of no_mangle SIMD functions that we compile out to various optimized backends. The output is then stored in a golden and compared.

Thus, we can manually validate how the Rust compiler and LLVM optimizes fearless_simd code. Any changes in compilation or code that modify the assembly would be caught.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.