use Vec in memorydb benches
@@ -34,7 +34,7 @@ use test::{Bencher, black_box};
#[bench]
fn instantiation(b: &mut Bencher) {
b.iter(|| {
- MemoryDB::<KeccakHasher>::new();
+ MemoryDB::<KeccakHasher, Vec<u8>>::new();
})
}
@@ -60,7 +60,7 @@ fn compare_to_null_in_const(b: &mut Bencher) {
#[bench]
fn contains_with_non_null_key(b: &mut Bencher) {
- let mut m = MemoryDB::<KeccakHasher>::new();
+ let mut m = MemoryDB::<KeccakHasher, Vec<u8>>::new();
let key = KeccakHasher::hash(b"abc");
m.insert(b"abcefghijklmnopqrstuvxyz");
b.iter(|| {
@@ -70,7 +70,7 @@ fn contains_with_non_null_key(b: &mut Bencher) {
#[bench]
fn contains_with_null_key(b: &mut Bencher) {
- let mut m = MemoryDB::<KeccakHasher>::new();
+ let mut m = MemoryDB::<KeccakHasher, Vec<u8>>::new();
let null_key = KeccakHasher::hash(&NULL_RLP);
m.insert(b"abcefghijklmnopqrstuvxyz");
b.iter(|| {
