Benchmark the Balances Pallet (#4879)

* Initial transfer bench

* Add best case

* Transfer keep alive

* Set balance benchmarks

* Bump impl

* Fix text

Co-authored-by: Gavin Wood <github@gavwood.com>
This commit is contained in:
Shawn Tabrizi
2020-02-12 12:11:20 +01:00
committed by GitHub
parent 51a45c5d9f
commit 13971fe2a7
3 changed files with 324 additions and 0 deletions
+1
View File
@@ -812,6 +812,7 @@ impl_runtime_apis! {
-> Option<Vec<BenchmarkResults>>
{
match module.as_slice() {
b"pallet-balances" | b"balances" => Balances::run_benchmark(extrinsic, steps, repeat).ok(),
b"pallet-identity" | b"identity" => Identity::run_benchmark(extrinsic, steps, repeat).ok(),
b"pallet-timestamp" | b"timestamp" => Timestamp::run_benchmark(extrinsic, steps, repeat).ok(),
_ => return None,