alexcrichton opened PR #11765 from alexcrichton:faster-capi-testing to bytecodealliance:main:
- Use
ninjaon all platforms to avoid the overhead ofmakeor whatever is used by default on Windows.- Using
ninjaadditionally enables building C/C++ objects in parallel by default.- Enable parallelism when running tests to avoid running just a single test at a time.
- Move building of Rust examples out of
ctestand into the "main build". This won't actually speed things up but avoids misattributing the first Rust test with minutes of runtime (as it's just building code).- Use dynamic linking to speed up the linking phase of examples.
- Keep a configuration though that tests static linking.
- Also add a
prtest:capidirective to enable C API tests in a PR.prtest:capi
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton updated PR #11765.
alexcrichton updated PR #11765.
alexcrichton updated PR #11765.
alexcrichton updated PR #11765.
alexcrichton updated PR #11765.
alexcrichton updated PR #11765.
alexcrichton updated PR #11765.
alexcrichton commented on PR #11765:
Ok this should be good to go now. Timings before/after
platform before after linux 11m4s 7m9s macos 11m49s 9m42s windows 21m19s 13m50s Additionally the new static-linking-only test takes 3m5s so not too long.
alexcrichton has marked PR #11765 as ready for review.
alexcrichton requested wasmtime-core-reviewers for a review on PR #11765.
alexcrichton requested fitzgen for a review on PR #11765.
alexcrichton requested wasmtime-default-reviewers for a review on PR #11765.
pchickey submitted PR review.
alexcrichton merged PR #11765.
Last updated: Dec 06 2025 at 07:03 UTC