Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pages/runtime/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ Options:

Only available for the LLVM compiler.

--enable-pass-params-opt
Only available for the LLVM compiler. Enable the "pass-params" optimization, where the first (#0)
global and the first (#0) memory passed between guest functions as explicit parameters.

--enable-simd
Enable support for the SIMD proposal

Expand Down Expand Up @@ -277,4 +281,4 @@ Options:

-h, --help
Print help (see a summary with '-h')
```
```
12 changes: 7 additions & 5 deletions pages/runtime/features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Each of this backends support different features, and have different support for
### Wasmer features
- **Caching**: compiled WebAssembly modules can be reused so subsequent runs of a Wasm file will have very little start up time;
- **Metering**: computation time and other resources can be monitored and limits set to control how the Wasm code runs. This is also known as "gas metering";
- **LLVM Pass-Params Optimization**: an LLVM-specific optimization that passes the first global (#0) and the first memory (#0) as explicit parameters between guest functions, which can significantly improve performance for certain workloads by reducing pointer dereferencing overhead;

## Support of features by backend

Expand All @@ -54,10 +55,11 @@ WebAssembly features:

Wasmer features:

| Features | Singlepass | Cranelift | LLVM | V8 | Wasmi | JavascriptCore | Browser |
| -------- | ---------- | --------- | ---- | -- | ----- | -------------- | ------- |
| Caching | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
| Metering | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
| Features | Singlepass | Cranelift | LLVM | V8 | Wasmi | JavascriptCore | Browser |
| -------------------------- | ---------- | --------- | ---- | -- | ----- | -------------- | ------- |
| Caching | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
| Metering | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
| Pass-Params Optimization | ❌ | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ |


## Backend support by Operating System
Expand All @@ -82,4 +84,4 @@ Wasmer features:
| V8 | ✅ | ✅ | ✅ | ✅ |
| Wasmi | ✅ | ✅ | ✅ | ✅ |
| JavascriptCore | ✅ | ✅ | ✅ | ❌ |
| Browser | ✅ | ✅ | ✅ | ✅ |
| Browser | ✅ | ✅ | ✅ | ✅ |