mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +00:00
Add parity-db variant for trie benchmarks (#5827)
* parity-db bench * use arkady suggestion
This commit is contained in:
@@ -139,10 +139,10 @@ pub fn run_benchmark(
|
||||
}
|
||||
|
||||
macro_rules! matrix(
|
||||
( $var:ident in $over:expr => $tt:expr, $( $rest:tt )* ) => {
|
||||
( $var:tt in $over:expr => $tt:expr, $( $rest:tt )* ) => {
|
||||
{
|
||||
let mut res = Vec::<Box<dyn crate::core::BenchmarkDescription>>::new();
|
||||
for $var in $over.iter() {
|
||||
for $var in $over {
|
||||
res.push(Box::new($tt));
|
||||
}
|
||||
res.extend(matrix!( $($rest)* ));
|
||||
|
||||
Reference in New Issue
Block a user