polkadot-developers / substrate-docs

Substrate Developer Hub. Substrate is powered by best in class cryptographic research and comes with peer to peer networking, consensus mechanisms, and much more.
https://docs.substrate.io
BSD Zero Clause License
130 stars 272 forks source link

Benchamrk machine referenced more strongly #688

Open nuke-web3 opened 2 years ago

nuke-web3 commented 2 years ago

Deep dive into benchmarking from Shawn: https://www.youtube.com/watch?v=Qa6sTyUqgek

NOTE you must use the identical machine as your target relaychain to ensure that your weights system is matching there for the very tight and strict restriction on PoV execution: https://docs.substrate.io/v3/concepts/weight/

Substrate defines one unit of weight as one picosecond of execution time, that is 1012 weight = 1 second, or 1,000 weight = 1 nanosecond, on fixed reference hardware (Intel Core i7-7700K CPU with 64GB of RAM and an NVMe SSD).

https://www.shawntabrizi.com/substrate-graph-benchmarks/docs/#/assumptions

bkchr commented 2 years ago

The benchmarking currently isn't done for execution on the relay chain. The point is that the validation phase doesn't use any database and will ready everything from memory, aka being much faster.