Skip to content

Add criterion benchmarks for the wide wrappers - #90

Closed
marknefedov wants to merge 2 commits into
dimforge:masterfrom
marknefedov:criterion-wide-benches
Closed

Add criterion benchmarks for the wide wrappers#90
marknefedov wants to merge 2 commits into
dimforge:masterfrom
marknefedov:criterion-wide-benches

Conversation

@marknefedov

@marknefedov marknefedov commented Aug 14, 2026

Copy link
Copy Markdown

Stacked on #87; the first commit is that branch, only the last commit is new.

Adds criterion micro-benchmarks for the Wide* wrappers: per-lane extract/replace, the map_lanes math ops, horizontal reductions, boolean mask ops, and the raw wide operations as a reference ceiling. harness = false, runs on stable.

An earlier version of this PR also switched extract/replace to wide 1.6's as_array accessors. The benchmarks measured that change as neutral at opt-level 3 (LLVM already folds the old round trip in hot inlined code), so the commit was dropped. The benches remain as regression coverage for exactly that kind of change.

Covers extract/replace lane access, map_lanes-based math ops,
horizontal reductions, boolean mask ops, and raw wide ceilings.
@marknefedov
marknefedov force-pushed the criterion-wide-benches branch from 045dbfe to a226a07 Compare August 14, 2026 21:05
@marknefedov marknefedov changed the title Add criterion benchmarks for the wide wrappers, use as_array for lane access Add criterion benchmarks for the wide wrappers Aug 14, 2026
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