Quench.
AOTNOVEMBER 2026

quench.run / updated

Compile JavaScript to a native executable

Quench's AOT compiler turns a JavaScript or TypeScript program into machine code, not a bundled script.

Quench compiles a JavaScript or TypeScript entry file and its imports ahead of time into one native executable: quench --build-aot app.ts -o app. The program is lowered to machine code with the same meaning as Quench's interpreter; the full interpreter and JITs are left out unless the program uses eval or new Function. AOT is experimental and no AOT speed numbers are published yet.

Usage

cargo build --release -p quench --features aot
./target/release/quench --build-aot app.ts -o app
./app

How it compares

Quench AOTNode.js SEAbun build --compiledeno compile
What goes into the binaryprogram compiled to machine code, plus runtimescript embedded in the node binarybundle embedded in the Bun binaryprogram embedded in the Deno binary
Code runs asprecompiled native codeV8 interpreter and JIT at run timeJavaScriptCore at run timeV8 at run time
Full interpreter in the binaryonly if eval or new Function is usedalwaysalwaysalways
Published speed numbersnot measurednot measurednot measurednot measured
Maturityexperimental, build from sourcestablestablestable

Quench has not benchmarked its AOT output against these tools, so this table describes mechanism only.

One semantics

Each opcode's meaning is written once. The interpreter runs it directly, the JITs and the AOT compiler emit it as machine code. That is the interpreter specialized to what is known about the program (a Futamura projection), so an AOT-compiled program and an interpreted one agree. Background: AOT without a second compiler.

Limits today

  • Built and tested on Linux, from a source build with --features aot.
  • No published speed numbers; the target is within 5x of equivalent C on every JetStream benchmark.
  • Node API compatibility is still being built out.

The runtime around it

QuenchNode.jsBunDeno
Written inRust (engine and runtime)C++ (V8) and JavaScriptZig, C++ (JavaScriptCore)Rust runtime, C++ engine (V8)
V8-v7 score, JIT off, geomean of 84,9802,3491,979not measured
V8-v7 peak memory, JIT off, geomean11.4 MB65.4 MB26.8 MBnot measured
JetStream 3 score, JIT off, 56 tests34.339.732.2not measured
JetStream 3 peak memory, JIT off28.5 MB110.1 MB47.7 MBnot measured
Test26253,353 passing, 0 failing, 53 waivednot measurednot measurednot measured
JIT performanceJIT tiers not yet competitivemature JITmature JITmature JIT (V8)
Packaged releasesno, build from sourceyesyesyes

Benchmark rows: interpreter only in every engine (quench --no-jit, node --jitless, Bun with BUN_JSC_useJIT=0), one 4-core Linux machine. V8-v7 measured 14 November 2026, JetStream 3 on 17 November 2026. Bold marks the best measured value. Deno has not been measured; we do not publish numbers we have not run. Full tables and method.

Questions

How do I compile JavaScript or TypeScript to a native executable?

With Quench built with the aot feature, run quench --build-aot app.ts -o app, then ./app. The entry file and the modules it imports are compiled ahead of time into one native executable.

Is the Quench AOT compiler faster than Node?

No AOT speed numbers are published yet. The goal is AOT code within 5x of the equivalent C program, and it is not yet met on every benchmark.

Does an AOT-compiled Quench program include an interpreter?

The full interpreter and the JIT tiers are left out of the executable unless the program uses eval or new Function, which need to compile code at run time.

About Quench

Quench is a JavaScript, TypeScript and WebAssembly runtime written in Rust. Test262: 53,353 passing, 0 failing. Interpreter, two JITs, and AOT to native executables. It is MIT licensed, early, and built from source with Cargo. Source: github.com/butaji/quench. Machine-readable summary: llms.txt.

Related: benchmarks · JavaScript runtime in Rust · low-memory Node.js alternative · compile JavaScript to a native executable · Test262 conformance · JavaScript for AI agents