mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 21:51:06 +00:00
A Pallet for Benchmarking Common Runtime Operations (#4902)
* Benchmark pallet * Add a bunch more benchmarks * do nothing test * new benchmarks * Clean up extra tests * Encode and Decode Vec<T::AccountId> * Starting to migrate benchmarks to macro * Use macro * Remove call and storage * Update Cargo.toml * Add storage recalc benchmark * Add support for custom functions in benchmark! macro * Reset DB for storage recalc * Feedback from review * Add more comments * Remove benchmark pallet from node * Fix cargo files * Fix comments * Change `crate` to `super` * missed one * Use results of benchmark encode/decode * Pass generic to extra functions * reset macro to master * Update lib.rs * Update to use standard syntax
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
[package]
|
||||
name = "pallet-benchmark"
|
||||
version = "2.0.0-alpha.3"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
license = "GPL-3.0"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
sp-std = { version = "2.0.0-alpha.3", default-features = false, path = "../../primitives/std" }
|
||||
sp-io = { version = "2.0.0-alpha.3", default-features = false, path = "../../primitives/io" }
|
||||
sp-runtime = { version = "2.0.0-alpha.3", default-features = false, path = "../../primitives/runtime" }
|
||||
frame-support = { version = "2.0.0-alpha.3", default-features = false, path = "../support" }
|
||||
frame-system = { version = "2.0.0-alpha.3", default-features = false, path = "../system" }
|
||||
frame-benchmarking = { version = "2.0.0-alpha.3", default-features = false, path = "../benchmarking" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"serde",
|
||||
"codec/std",
|
||||
"sp-std/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"frame-benchmarking/std",
|
||||
]
|
||||
Reference in New Issue
Block a user