bench: add more WASI benchmarks (#5309)
* bench: add more WASI benchmarks This follows up on #5274 to add several more scenarios with which to benchmark WASI performance: - `open-file.wat`: opens and closes a file - `read-file.wat`: opens a file, reads 4K bytes from it, then closes it - `read-dir.wat`: reads a directory's entries Each benchmark is hand-crafted WAT to more clearly control what WASI calls are made. As with #5274, these modules' sole entry point takes a parameter indicating the number of iterations to run in order to use `criterion`'s `iter_custom` feature. * fix: reduce expected size of directory entries
This commit is contained in:
1
benches/wasi/.gitignore
vendored
Normal file
1
benches/wasi/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
test.bin
|
||||
Reference in New Issue
Block a user