Skip to content

Commit

Permalink
Benchmark macro (paritytech#4962)
Browse files Browse the repository at this point in the history
* MAcro benchamrks

* Iterative macro

* Tidying it up.

* Macro improvements

* Bits..

* Last benchmaks.

* Repo benchmark macro

* Add the possibility of evaluating arbitrary expressions in a
benchmaark

* Better syntax and docs

* Update `BenchmarkParameter`

* Add `ignore` to sudo-code in docs

* First try of timestamp implementation.

* Fix macro docs, remove warnings.

* Use macro in balances pallet.

* Make some space in frame benchmarking.

* Remove _benchmarks_seed variable.

* Bump impl_version.

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: Marcio Diaz <marcio@parity.io>
  • Loading branch information
3 people authored and General-Beck committed Mar 4, 2020
1 parent c60deb9 commit 9240bd1
Show file tree
Hide file tree
Showing 9 changed files with 5,097 additions and 5,265 deletions.
8,851 changes: 4,425 additions & 4,426 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 224,
impl_version: 0,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
};

Expand Down
340 changes: 68 additions & 272 deletions frame/balances/src/benchmarking.rs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frame/benchmarking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ codec = { package = "parity-scale-codec", version = "1.1.2", default-features =
sp-api = { version = "2.0.0", path = "../../primitives/api", default-features = false }
sp-runtime-interface = { version = "2.0.0", path = "../../primitives/runtime-interface", default-features = false }
sp-std = { version = "2.0.0", path = "../../primitives/std", default-features = false }
sp-io ={ path = "../../primitives/io", default-features = false }

[features]
default = [ "std" ]
Expand Down
Loading

0 comments on commit 9240bd1

Please sign in to comment.