Add test to measure size overhead (#8)

* Don't use parity-wasm directly

* Add test that output size over head of metering
This commit is contained in:
Alexander Theißen
2022-01-31 14:50:32 +01:00
committed by GitHub
parent ff68bee449
commit 4548a86329
2 changed files with 74 additions and 2 deletions
+1 -2
View File
@@ -1,10 +1,9 @@
use parity_wasm::elements;
use std::{
fs,
io::{self, Read, Write},
path::{Path, PathBuf},
};
use wasm_instrument as instrument;
use wasm_instrument::{self as instrument, parity_wasm::elements};
use wasmparser::validate;
fn slurp<P: AsRef<Path>>(path: P) -> io::Result<Vec<u8>> {