Add a block production benchmark (#10104)

* Add a block production benchmark

* Simplify the block production benchmark

* Cleanups; switch execution strategy to WASM

* Switch WASM execution to `Compiled`

* Reduce the setup cost of the benchmark

Creating all of those extrinsics takes up *a lot* of time, up to the point
where the majority of the time is actually spent *outside* of the code
which we want to benchmark here. So let's only do it once.

* Add a variant of the block production benchmark with proof recording
This commit is contained in:
Koute
2021-11-09 22:38:31 +09:00
committed by GitHub
parent 91b6d5970a
commit 59078fcf94
3 changed files with 247 additions and 0 deletions
+3
View File
@@ -4528,6 +4528,7 @@ dependencies = [
"node-runtime",
"pallet-balances",
"pallet-im-online",
"pallet-timestamp",
"pallet-transaction-payment",
"parity-scale-codec",
"platforms",
@@ -4536,6 +4537,7 @@ dependencies = [
"remote-externalities",
"sc-authority-discovery",
"sc-basic-authorship",
"sc-block-builder",
"sc-chain-spec",
"sc-cli",
"sc-client-api",
@@ -4562,6 +4564,7 @@ dependencies = [
"sp-api",
"sp-authority-discovery",
"sp-authorship",
"sp-blockchain",
"sp-consensus",
"sp-consensus-babe",
"sp-core",