Skip to content

fix: stabilize FindSequence microbench#378

Merged
cheb0 merged 2 commits intomainfrom
0-stabilize-find-seq-microbench
Mar 20, 2026
Merged

fix: stabilize FindSequence microbench#378
cheb0 merged 2 commits intomainfrom
0-stabilize-find-seq-microbench

Conversation

@cheb0
Copy link
Collaborator

@cheb0 cheb0 commented Mar 18, 2026

Description

Same, as before - just use same random data across runs.

main branch:
20.68 ns/op
28.29 ns/op
34.91 ns/op
29.05 ns/op

now:
21.00 ns/op
20.95 ns/op
20.67 ns/op
20.69 ns/op

It also means the data will always be same.

The alternative solution would be to generate 1000+ random haystacks and needles and run across all of them. That would also possibly make results more stable as well. However, I would leave it to someone who wants to change the function logic itself.


  • I have read and followed all requirements in CONTRIBUTING.md;
  • I used LLM/AI assistance to make this pull request;

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.29%. Comparing base (8bbe783) to head (772a7d6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #378      +/-   ##
==========================================
+ Coverage   71.27%   71.29%   +0.02%     
==========================================
  Files         206      206              
  Lines       15156    15156              
==========================================
+ Hits        10802    10806       +4     
+ Misses       3568     3562       -6     
- Partials      786      788       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

🔴 Performance Degradation

Some benchmarks have degraded compared to the previous run.
Click on Show table button to see full list of degraded benchmarks.

Show table
Name Previous Current Ratio Verdict
FindSequence_Random/medium-4 7fa2c2 78c9a9
12429.58 MB/s 9823.45 MB/s 0.79 🔴

@cheb0 cheb0 merged commit 4e7a41f into main Mar 20, 2026
8 checks passed
@cheb0 cheb0 deleted the 0-stabilize-find-seq-microbench branch March 20, 2026 06:13
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.

4 participants