MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / tinywasm_parse

Function tinywasm_parse

crates/tinywasm/benches/tinywasm_modes.rs:12–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const BENCH_MEASUREMENT_TIME: core::time::Duration = core::time::Duration::from_secs(10);
11
12fn tinywasm_parse() -> Result<Module> {
13 let parser = tinywasm_parser::Parser::new();
14 Ok(parser.parse_module_bytes(WASM)?)
15}
16
17fn setup_typed_func(module: &Module, engine: Option<Engine>) -> Result<(Store, FunctionTyped<(), ()>)> {
18 let mut store = match engine {

Callers 1

criterion_benchmarkFunction · 0.70

Calls 1

parse_module_bytesMethod · 0.80

Tested by

no test coverage detected