containerd / runwasi

Facilitates running Wasm / WASI workloads managed by containerd
Apache License 2.0
1.09k stars 90 forks source link

Benchmark the start up time for each shim #614

Open Mossaka opened 5 months ago

Mossaka commented 5 months ago

Currently, we benchmark when the task_start is invoked to the end of the execution of the wasm module.

fn run_wasmtime_test_with_spec(wasmbytes: &[u8]) -> Result<u32, Error> {
    let (exit_code, _, _) = WasiTest::<WasmtimeTestInstance>::builder()?
        .with_wasm(wasmbytes)?
        .build()?
        .start()?
        .wait(Duration::from_secs(10))?;
    Ok(exit_code)
}

We would love to benchmark the start up of the shim, namely from the entrypoint of shim_main() to run_wasi().

dblnz commented 2 weeks ago

I'm giving this a try