-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[CI] Add basic benchmarking job #55
Conversation
body="${body//$'\r'/'%0D'}" | ||
echo ::set-output name=body::$body | ||
- name: Create commit comment | ||
uses: peter-evans/commit-comment@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment explaining what this peter-evans
magic is could be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a github action creating a comment on the commit:
https://github.com/peter-evans/commit-comment
- name: run benchmark | ||
run: | | ||
set -o pipefail | ||
cargo run --release --bin bench 2>&1 | huniq | tee -a artifacts/bench_results.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is 'cargo run --release --bin bench' working for you? Because it seems that there are some missing lock issues. Maybe we do not init the DB correctly.
[feature]: introduce a new component, the BlockWaiter. BlockWaiter will basically act as an aggregator and fetch the batches that correspond to a header by providing a certificate id.
[feature]: introduce a new component, the BlockWaiter. BlockWaiter will basically act as an aggregator and fetch the batches that correspond to a header by providing a certificate id.
What
A CI job that runs
cargo run --release --bin bench
on each new commit and posts the results as a commit comment.Why
See #54 : our current benchmarking capacities are bit-rotting a bit. Let's stop this.
Next steps
Tests
Please find a successful run of the bench on my fork here:
https://github.com/huitseeker/fastnft/actions/runs/1580740243
And a subsequent comment at the bottom of this commit:
https://github.com/huitseeker/fastnft/commit/ffad063381f8ec4be9ca40c76448d3f8ec106ae5