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

Function argon2id_run

crates/tinywasm/benches/argon2id.rs:24–30  ·  view source on GitHub ↗
(module: Module)

Source from the content-addressed store, hash-verified

22}
23
24fn argon2id_run(module: Module) -> Result<()> {
25 let mut store = Store::default();
26 let instance = ModuleInstance::instantiate(&mut store, &module, None)?;
27 let argon2 = instance.func::<(i32, i32, i32), i32>(&store, "argon2id")?;
28 argon2.call(&mut store, (1000, 2, 1))?;
29 Ok(())
30}
31
32fn criterion_benchmark(c: &mut Criterion) {
33 let module = argon2id_parse().expect("argon2id_parse");

Callers 1

criterion_benchmarkFunction · 0.85

Calls 1

callMethod · 0.80

Tested by

no test coverage detected