mirror of
https://github.com/trailbaseio/trailbase.git
synced 2025-12-30 06:09:48 -06:00
Disable V8 runtime by default (custom builds can still enable it) and add a truly static binary release for Linux using MUSL.
Building with MUSL required vendoring sqlite-vec and OpenSSL. Also clean up no-longer-supported TypeScript guest scripts.
This commit is contained in:
@@ -189,17 +189,14 @@ scheduling, or more generally the same CPU variability we observed earlier.
|
||||
|
||||
## Runtimes
|
||||
|
||||
[TrailBase is currently going through a transition from a V8-based runtime to a
|
||||
WASM one](/blog/switching_to_a_wasm_runtime).
|
||||
[TrailBase went through a transition from a V8-based runtime to a WASM one, which can support many guest languages such as JS, TS and Rust](/blog/switching_to_a_wasm_runtime).
|
||||
|
||||
V8's execution with just-in-time (JIT) compilation is quite speedy and is about
|
||||
40x faster than Goja, PocketBase's interpreter and similar other interpreters
|
||||
(the graph's y-axis is logarithmic).
|
||||
With the new WASM-based runtime, execution of JS relies on bundling an
|
||||
With the new WebAssembly-based runtime, execution of JS relies on bundling an
|
||||
interpreter and thus performance has regressed to be roughly on-par with Goja
|
||||
and other JIT-less engines.
|
||||
However, guests languages that can compile natively to WASM, e.g. Rust, can shine
|
||||
with roughly a 135x speed-up with strong state isolation between requests.
|
||||
with roughly a 135x speed-up with strong state isolation between requests (the
|
||||
graph's y-axis is logarithmic).
|
||||
|
||||
import { RuntimeFib40Times } from "./_benchmarks/wasm_runtime.tsx";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user