Skip to content

chore(benchmark): improve benchmark CI #1112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2024
Merged

chore(benchmark): improve benchmark CI #1112

merged 1 commit into from
Aug 19, 2024

Conversation

glevco
Copy link
Contributor

@glevco glevco commented Aug 19, 2024

Motivation

Benchmark on CI was sometimes failing when the server node would take some time to start sending blocks to the benchmark node, causing an increase in the measured time. Adding a warmup run to hyperfine fix this as it is discarded, and then the two following runs are valid.

I also noticed the large waiting times for the download step (20 min) was caused by cache not being set in the full node. I added it and it now takes 2 min.

Acceptance Criteria

  • Move benchmark steps to individual GitHub CI steps.
  • Add cache to the full node that downloads benchmark data.
  • Add 1 warmup run to hyperfine.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco self-assigned this Aug 19, 2024
@glevco glevco force-pushed the chore/improve-bench branch 4 times, most recently from c8ba3e6 to fcd9dff Compare August 19, 2024 05:27
Copy link

github-actions bot commented Aug 19, 2024

🐰Bencher

ReportMon, August 19, 2024 at 16:13:19 UTC
Projecthathor-core
Branchchore/improve-bench
Testbedubuntu-22.04
Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
Latency Lower Boundary
nanoseconds (ns) | (%)
Latency Upper Boundary
nanoseconds (ns) | (%)
sync-v2 (up to 20000 blocks)✅ (view plot)101,650,896,060.40 (-1.68%)82,708,741,756.12 (81.37%)124,063,112,634.18 (81.93%)

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

@glevco glevco force-pushed the chore/improve-bench branch from fcd9dff to ce1d899 Compare August 19, 2024 16:10
@glevco glevco changed the title wip chore(benchmark): improve benchmark CI Aug 19, 2024
@glevco glevco marked this pull request as ready for review August 19, 2024 16:24
Copy link

codecov bot commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.93%. Comparing base (3681579) to head (ce1d899).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1112      +/-   ##
==========================================
+ Coverage   84.91%   84.93%   +0.01%     
==========================================
  Files         315      315              
  Lines       24070    24070              
  Branches     3647     3647              
==========================================
+ Hits        20439    20443       +4     
+ Misses       2921     2918       -3     
+ Partials      710      709       -1     

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

@glevco glevco merged commit 78dcca1 into master Aug 19, 2024
13 checks passed
@glevco glevco deleted the chore/improve-bench branch August 19, 2024 19:06
@glevco glevco mentioned this pull request Aug 20, 2024
1 task
@jansegre jansegre mentioned this pull request Oct 4, 2024
2 tasks
@jansegre jansegre mentioned this pull request Dec 11, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants