Skip to content
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

Author reward dest pallet benchmark #14

Merged
merged 21 commits into from
Apr 2, 2024

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Apr 2, 2024

Simple benchmark for pallet author reward dest, without the final benchmarked weight.

Base automatically changed from gui-authorship-treasury to master April 2, 2024 01:53
@shawntabrizi
Copy link
Contributor

shawntabrizi commented Apr 2, 2024

cargo test -p pallet-author-reward-dest --features runtime-benchmarks is working, so thats a good start.

I think the problem is with the chain spec and stuff. Not sure that spec.json is generating with the right information in it.

@shawntabrizi
Copy link
Contributor

@thiolliere should be fixed now. I ran your exact commands above successfully.

You could also change to use --chain=main rather than building a spec file

@gui1117 gui1117 marked this pull request as ready for review April 2, 2024 09:43
Comment on lines +48 to +49
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically, you delete the storage at the end of the block, so you don't even need to count the storage write, but its okay, better to be conservative

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, I should have put the finalize hook in the benchmark

@shawntabrizi shawntabrizi merged commit 9998145 into master Apr 2, 2024
2 checks passed
@shawntabrizi shawntabrizi deleted the gui-author-reward-dest-benchmark branch April 2, 2024 19:23
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.

2 participants