Skip to content

wasmtime: add options for configuring between winch and cranelift#562

Open
leonm1 wants to merge 7 commits into
proxy-wasm:mainfrom
leonm1:winch
Open

wasmtime: add options for configuring between winch and cranelift#562
leonm1 wants to merge 7 commits into
proxy-wasm:mainfrom
leonm1:winch

Conversation

@leonm1

@leonm1 leonm1 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor
image

Winch has significantly faster load times than cranelift, with negligible difference in runtime performance:

image

With this change, we will be ready to switch Envoy over to using Wasmtime with Winch by default.

leonm1 added 2 commits July 15, 2026 10:16
Signed-off-by: Matt Leon <mattleon@google.com>
Signed-off-by: Matt Leon <mattleon@google.com>
Signed-off-by: Matt Leon <mattleon@google.com>
Comment thread src/wasmtime/wasmtime.cc Outdated
leonm1 added 3 commits July 15, 2026 13:33
Signed-off-by: Matt Leon <mattleon@google.com>
Signed-off-by: Matt Leon <mattleon@google.com>
Winch is not supported on s390x

Signed-off-by: Matt Leon <mattleon@google.com>
@leonm1 leonm1 changed the title wasmtime: default to winch and support configuring cranelift wasmtime: add options for configuring between winch and cranelift Jul 15, 2026
Signed-off-by: Matt Leon <mattleon@google.com>

@PiotrSikora PiotrSikora left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely +1 for adding winch, but:

  1. This is added as a configuration option, which doesn't match how other engine flavors are exposed in this library (e.g. wamr-interp, wamr-jit, wamr-aot).
  2. I'm not sure if the optimization levels have any meaningful impact, so they might be only adding unnecessary noise and maintenance burden. Do you have any benchmarks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants