Add parity-db variant for trie benchmarks (#5827)

* parity-db bench

* use arkady suggestion
This commit is contained in:
Nikolay Volf
2020-04-30 10:33:31 +03:00
committed by GitHub
parent 71d3863a78
commit 48832fedc3
6 changed files with 124 additions and 26 deletions
+2 -2
View File
@@ -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)* ));