Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark the start up time for each shim #614

Open
Tracked by #97
Mossaka opened this issue Jun 7, 2024 · 1 comment
Open
Tracked by #97

Benchmark the start up time for each shim #614

Mossaka opened this issue Jun 7, 2024 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@Mossaka
Copy link
Member

Mossaka commented Jun 7, 2024

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().

@Mossaka Mossaka mentioned this issue Jun 7, 2024
13 tasks
@Mossaka Mossaka added the good first issue Good for newcomers label Jun 7, 2024
@dblnz
Copy link
Contributor

dblnz commented Oct 30, 2024

I'm giving this a try

@Mossaka Mossaka changed the title add empty wasm module to test the start up time for each shim Benchmark the start up time for each shim Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants