Skip to content
Commit 1843ae83 authored by Oliver Tale-Yazdi's avatar Oliver Tale-Yazdi Committed by GitHub
Browse files

Add `benchmark extrinsic` command (#11456)



* Benchmark extrinsic

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Reduce warmup and repeat

Running this 1000 times with a full block takes ~33 minutes 🙈

.
Reducing it to ~3 minutes per default.

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Make ExistentialDeposit public

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Add 'bechmark extrinsic' command

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* fmt

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Add --list and cleanup

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Unrelated Clippy

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Clippy

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Fix tests and doc

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Move implementations up + fmt

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Dont use parameter_types macro

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Cache to_lowercase() call

The .to_lowercase() on the builder is actually not needes
since its already documented to only return lower case.

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Spelling

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Use correct nightly for fmt...

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Rename ED

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Fix compile

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Subtract block base weight

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Fixes

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Use tmp folder for test

This should already be the case since --dev is passed but
somehow not...

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Fix test

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
parent 3d95c270
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment