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
Parachain-staking benchmarks code related questions #1950
Comments
For 2, you have the reference hardware here: https://wiki.polkadot.network/docs/maintain-guides-how-to-validate-polkadot. Take into account that it is still possible that the benchmark code takes a little bit of time, as it is calculating a weight model based on the inputs. For 1, I think we can take care of it @nbaztec |
thanks |
Thank you for your help. When I generate a weight file through benchmark code, the terminal keeps refreshing the
Is this normal? Is there a way to avoid flushing this log all the time? Looking forward to your reply |
@nbaztec @girazoki Sorry for taking up your time, running the
|
I'll take a look. Thanks for informing. |
Hi @Jinsipang these logs are actually normal logs emitted from the runtime to bring to attention an important event. But perhaps they should be marked as debug, since they are the intended behavior. This would unfortunately, be fixed in the next runtime. |
Thank you for your reply, I hope this information can help you fix the problem in your project |
The reference hardware is significantly slower than your machine, by the way. So expect it to take quite some time in either case. I think it takes around 1 hour for a full "production" run for us. However, you can run a much quicker version (at the expense of accuracy) by using something like |
@notlesh Thanks for your reply ,the actual operation takes much more time than this. I tried to run a complete parachain-staking benchmark code before, which took more than 4 hours. Now I am trying to optimize this part The code, try to improve the running time without affecting the benchmark results. |
Hi moonbeam team!
I'm having some problems executing parachain-staking benchmarks code, hope you can help.
cargo test -p pallet-parachain-staking --features runtime-benchmarks
command ,the terminal returned some errorsIt took too long to execute the benchmark code, I guess it was caused by the low configuration of the computer, which is the configuration of my computer
The text was updated successfully, but these errors were encountered: