-
Notifications
You must be signed in to change notification settings - Fork 721
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
frame/benchmarking: baseline weights independent of complexity params #400
Comments
Hello @ggwpez I am interested in picking this issue up. But I don't understand what you mean by "should have a weight that depends on it"? |
Wow nice @dharjeezy !
Yes it could just be removed and run with a constant repetition, eg
That would just be an alternative approach; instead of removing it you could also fix it so that the weight output uses the fn addition(_i: u32, ) -> Weight {
(284_000 as Weight)
} but could look more like this: fn addition(i: u32, ) -> Weight {
(1_000 as Weight)
.saturating_add((10_000 as Weight).saturating_mul(i as Weight))
}
|
I dont think it is clear that we can "force the benchmark" to use the But yeah, in any case, it is not actually that important what precisely we are benchmarking, just that the benchmarks are universally consistent, as to tell when changes to the rust compiler or hardware are making an impact to the timing of the weights. |
We could execute batches of operations, eventually it should show up. |
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4. - [Release notes](https://github.com/mafintosh/dns-packet/releases) - [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md) - [Commits](mafintosh/dns-packet@v1.3.1...v1.3.4) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
* message lane metrics * fmt and clippy
The baseline benchmarks
addition
,subtraction
,multiplication
anddivision
all ignore their complexity parameter and have a constant weight.The benchmarks should be fixed to either not accept a parameter or have a weight that depends on it.
The text was updated successfully, but these errors were encountered: