Add benchmarks and add tiny performance improvements (#6)

* Add some benchmarks

* Replace extend -> extend_from_slice (1-2% performance improvement)

* Add many_blocks benchmarks
This commit is contained in:
Alexander Theißen
2022-01-24 21:20:47 +01:00
committed by GitHub
parent 184b3f8b3a
commit 8291876394
15 changed files with 62 additions and 2 deletions
+9
View File
@@ -11,11 +11,20 @@ categories = ["wasm", "no-std"]
repository = "https://github.com/paritytech/wasm-instrument"
include = ["src/**/*", "LICENSE-*", "README.md"]
[[bench]]
name = "benches"
harness = false
[profile.bench]
lto = "fat"
codegen-units = 1
[dependencies]
parity-wasm = { version = "0.42", default-features = false }
[dev-dependencies]
binaryen = "0.12"
criterion = "0.3"
diff = "0.1"
rand = "0.8"
wabt = "0.10"