# Guillotine: how the fastest EVM works

Two days ago we launched the [Guillotine beta](https://x.com/tevmtools/status/2128299435373600993). Yesterday Paradigm announced [EVM2 v1.0.0](https://www.paradigm.xyz/writing/evm2-the-fastest-evm) and called it "the fastest EVM."

Credit to Georgios, Dani Popes, and the [evm2](https://github.com/alloy-rs/evm2) team. Moving the Rust EVM stack off a `switch` loop onto [threaded tail calls](https://en.wikipedia.org/wiki/Threaded_code), better cache layout, and superinstructions is real work, and it is great to see techniques [Guillotine helped pioneer](https://x.com/FUCORY/status/1965959039701189012) spread across Ethereum.

EVM2 is still not the fastest EVM.

If you want to see a strong new challenger at the top of the leaderboard, look at [Needlefish](https://github.com/refcell/needlefish) by Andreas Bigger ([refcell](https://github.com/refcell), [@andreaslbigger](https://x.com/andreaslbigger)). It is another pure-Zig EVM with zero external dependencies and 100% parity across 74/74 x86-64 and 45/45 Apple M3 Max workloads. On [benchmarks.tevm.sh](https://benchmarks.tevm.sh), Needlefish edges Guillotine on warm interpreter geomean (1.095x on Linux x86-64, 1.194x on M3 Max) and overall ARM64 JIT geomean, while Guillotine leads x86-64 JIT (Needlefish is ARM64-only for JIT so far), cold x86-64, heavy compute JIT loops (`onchain_lm_v2`, `snailtracer`, `burntpix`), JIT compile time, and peak memory. Both Zig EVMs sit well ahead of `evm2` and `revm`.

![Guillotine sweeps 32/32 inside alloy-rs/evm2's own Criterion harness](/images/how-the-fastest-evm-works/chart-criterion-sweep.png)

![Mainnet 100-block Osaka replay and Reth full-node execution and RAM](/images/how-the-fastest-evm-works/chart-mainnet-and-reth.png)

![Foundry forge test suites and Browser WebAssembly benchmarks](/images/how-the-fastest-evm-works/chart-foundry-and-wasm.png)

![Zero-LLVM Native JIT compile time vs evm2 LLVM 23.1.7 JIT](/images/how-the-fastest-evm-works/chart-jit-compile-cliff.png)

Every chart, commit hash, compiler flag, and live browser runner is up at [benchmarks.tevm.sh](https://benchmarks.tevm.sh), and you can run the same suite locally in [evmts/guillotine](https://github.com/evmts/guillotine).

But we aren't here to litigate benchmarks. Here is how Guillotine actually gets its speed.

## 1. How EVMs dispatch opcodes (inspired by CPython, Lua, and `preserve_none`)

Most of Guillotine's core ideas came from studying fast non-EVM interpreters. [CPython 3.14](https://docs.python.org/3.14/whatsnew/3.14.html#a-new-type-of-interpreter) replaced its giant computed-goto loop with a `preserve_none` tail-calling interpreter (after [PEP 659](https://peps.python.org/pep-0659/) showed how much adaptive opcode specialization wins), while [Lua 5](https://www.lua.org/doc/jucs05.pdf) and [LuaJIT](https://luajit.org/) showed how pinning hot VM state in registers and packing instructions tightly into L1 cache unlocks order-of-magnitude gains.

![Where Guillotine's ideas came from: CPython, Lua/LuaJIT, evmone, Monad](/images/how-the-fastest-evm-works/diagram-interpreter-lineage.png)

An EVM spends most of its time jumping from one opcode to the next. How you write that jump controls both branch prediction and register allocation.

![Switch loop vs Guillotine tail-call dispatch animation](/images/how-the-fastest-evm-works/anim-switch-vs-tailcall.gif)

We went through several dispatch designs before landing on Guillotine's current engine:

![Evolution of EVM instruction dispatch](/images/how-the-fastest-evm-works/diagram-dispatch-evolution.png)

### The normal EVM interpreter (`while` + `switch`)

Most EVMs ([revm](https://github.com/bluealloy/revm), [geth](https://github.com/ethereum/go-ethereum), [evmone-baseline](https://github.com/ipsilon/evmone)) run one loop over raw bytecode:

```zig
while (pc < code.len) {
    switch (code[pc]) {
        0x01 => { // ADD
            const a = stack.pop();
            const b = stack.pop();
            stack.push(a +% b);
            pc += 1;
        },
        0x60 => { /* PUSH1 */ },
        // ... 256 cases
    }
}
```

Every opcode bounces back through one shared indirect jump (`switch`). Because all 256 opcodes share that single jump address, their branch histories collide and the CPU flushes a 15 to 20 stage pipeline on every miss.

### Labeled switch (an earlier Guillotine version)

We first tried Zig's [labeled switch](https://ziglang.org/documentation/0.15.2/#Labeled-switch) (similar to GCC/Clang [computed goto](https://eli.thegreenplace.net/2012/07/12/computed-goto-for-efficient-dispatch-tables)):

```zig
sw: switch (code[pc]) {
    0x01 => { /* ADD */ pc += 1; continue :sw code[pc]; },
    0x60 => { /* PUSH1 */ pc += 2; continue :sw code[pc]; },
}
```

Each arm gets its own indirect jump site, but all 256+ opcodes still live in one giant function. Heavy cold opcodes (`CALL`, `SSTORE`, `CREATE`, `KECCAK256`) wreck register allocation for the entire function and force spills inside tiny hot opcodes like `ADD` and `DUP1` (the exact same reason CPython 3.14 moved away from computed goto).

### Monad's assembly trampoline (`entry.S`)

[Monad's VM](https://github.com/category-labs/monad/tree/main/category/vm/interpreter) splits opcodes into separate `musttail` functions entered through its [`entry.S` assembly trampoline](https://github.com/category-labs/monad/blob/main/category/vm/interpreter/entry.S):

```asm
monad_vm_interpreter_trampoline:
    pushq %rbp; pushq %rbx; pushq %r12; pushq %r13; pushq %r14; pushq %r15
    movq %rsp, (%rdi)   # save exit_stack_ptr once
    pushq %rbp
    call *%r8           # enter core_loop -> instruction_table[*instr_ptr](...)
```

Saving callee-saved registers once lets any exit unwind identically to Monad's JIT, though inside the interpreter it still indexes `instruction_table[*instr_ptr]` off raw bytecode on every op.

### How `evmone` works

[evmone](https://github.com/ipsilon/evmone)'s Advanced interpreter preprocesses bytecode into a flat array (`analysis.instrs`) with basic-block gas/stack checks and isolated C++ handlers. Its inner loop in [advanced\_execution.cpp](https://github.com/ipsilon/evmone/blob/master/lib/evmone/advanced_execution.cpp) is three lines:

```cpp
const auto* instr = analysis.instrs.data();
while (instr != nullptr)
    instr = instr->fn(instr, state);
```

Separate functions fix register pressure, but every op pays a `CALL` and `RET` back to one shared loop call site and reloads `gas_left` and `stack_top` from `state` in memory.

### How Guillotine works

Guillotine pairs a [preprocessed schedule](https://github.com/evmts/guillotine/blob/main/src/preprocessor/dispatch.zig) with [guaranteed tail calls](https://blog.reverberate.org/2021/04/21/musttail-efficient-interpreters.html) via [`@call(.always_tail, ...)`](https://github.com/evmts/guillotine/blob/main/src/instructions/handlers_arithmetic.zig):

```zig
pub fn add(
    self: *FrameType, cursor: [*]const Dispatch.Item, sp: [*]WordType,
    gas: FrameType.GasType, t0: u64, t1: u64, t2: u64, t3: u64,
) callconv(handler_abi.handler_cc) handler_abi.ExitCode {
    var s = N.StackView.init(sp, t0, t1, t2, t3);
    s.binary_op_unsafe(addOp);
    return N.next(self, .ADD, cursor, s, gas); // bare JMP to cursor[1]
}
```

No `while` loop, no `CALL`/`RET`, no `table[*pc]` lookup. Each opcode is an isolated function ending in one `jmp reg` (x86\_64) or `br reg` (ARM64).

### Forking Zig for `preserve_none` (and keeping the top of stack in registers)

Under System V AMD64 and ARM64 AAPCS, half the CPU's general-purpose registers (`rbx, rbp, r12-r15` on x86\_64; `x19-x28` on ARM64) are callee-saved, so handlers that touch them have to push/pop them on the stack.

On February 5, 2024, [LLVM added `preserve_none`](https://github.com/llvm/llvm-project/pull/76868) in LLVM 19 (detailed in [Josh Haberman's tail-call updates](https://blog.reverberate.org/2025/02/10/tail-call-updates.html)). No GPRs are callee-saved inside the handler chain, the outer caller (`Frame.interpret`) saves registers once, and LLVM gives us wide register argument slots across every tail call.

Zig did not expose `preserve_none` when we started. In November 2025 we [posted on Ziggit](https://ziggit.dev/t/preserve-none-calling-convention-for-30-faster-interpreter/13076) and forked the Zig compiler to wire `preserve_none` to LLVM so we could benchmark it (~30% faster). On July 29, 2026, [native support landed in upstream Zig](https://codeberg.org/ziglang/zig/commit/bb296ab), shipping in stock Zig `0.17.1`.

![Inside the CPU: standard ABI vs Guillotine's preserve\_none ABI](/images/how-the-fastest-evm-works/diagram-preserve-none-registers.png)

Every handler [pins 8 values in hardware registers](https://github.com/evmts/guillotine/blob/main/src/preprocessor/handler_abi.zig): `frame`, `cursor`, `sp`, `gas`, and `t0..t3` (all four 64-bit limbs of the 256-bit top of stack). Returning a 1-byte `ExitCode` enum and outlining cold exits (`@branchHint(.cold)`) keeps hot prologues empty.

Paradigm's post highlighted fixing store-to-load forwarding on stack RAM (`evm2` writes one 32-byte store instead of four 8-byte stores). In Guillotine, `t0..t3` stays in CPU registers between ops and skips RAM altogether. When a `PUSH` does spill the old top of stack to `sp[0]`, a sentinel word at depth 0 makes spills branch-free, and [`handler_abi.spill`](https://github.com/evmts/guillotine/blob/main/src/preprocessor/handler_abi.zig) writes four `*volatile [4]u64` scalar stores so LLVM does not merge them into two 128-bit XMM vector stores (which otherwise costs four GPR-to-XMM moves and two shuffles per spill).

## 2. Fusions and branch prediction

Paradigm mentioned superinstructions in one sentence as future work. In a tail-call interpreter, fusion matters mostly for branch prediction.

In Solidity bytecode, `PUSH1` sits before 15 to 30 different hot opcodes (`ADD`, `MLOAD`, `MSTORE`, `AND`, `SHL`, `JUMPI`), so `push1_handler`'s indirect jump mispredicts constantly. Fusing `PUSH + op` deletes that polymorphic jump. On Solidity's `require()` and loop-exit idiom (`ISZERO; PUSH2 target; JUMPI`), [`ISZERO_JUMPI`](https://github.com/evmts/guillotine/blob/main/src/instructions/handlers_advanced_synthetic.zig) (plus `EQ_JUMPI`, `LT_JUMPI`, `GT_JUMPI`) deletes two indirect jumps and replaces them with one native conditional branch (`cbnz` / `jnz`) predicted >99% by the CPU's [TAGE predictor](https://en.wikipedia.org/wiki/Branch_predictor#TAGE_predictor):

![Why opcode fusion supercharges branch prediction](/images/how-the-fastest-evm-works/diagram-fusion-branch-prediction.png)

Fusions also skip stack spills and trigger narrow 64-bit fast paths. In [`PUSH_ADD_INLINE`](https://github.com/evmts/guillotine/blob/main/src/instructions/handlers_arithmetic_synthetic.zig), `cursor[1]` adds straight into `t0..t3` without moving `sp`. Because [`dispatch.zig`](https://github.com/evmts/guillotine/blob/main/src/preprocessor/dispatch.zig) checks the constant's value rather than the `PUSHn` width (`PUSH32 0x00..01; ADD` still becomes 1-limb `PUSH_ADD_INLINE`), `PUSH_MUL_INLINE` runs one hardware `u64 * u64 -> u128` when `(t1 | t2 | t3) == 0`, `PUSH_DIV_INLINE` runs [one hardware divide](https://github.com/evmts/guillotine/blob/main/src/core/verified_ops.zig), and [`AND_MASK160`](https://github.com/evmts/guillotine/blob/main/src/instructions/handlers_bitwise_synthetic.zig) collapses 40 bytes of `PUSH20 (2^160 - 1); AND` into one 8-byte handler with zero metadata.

We didn't guess which fusions to add. Too many synthetic handlers bloat L1 instruction cache and slow real blocks down, so we analyzed real Ethereum mainnet bytecode and execution data (bigram/trigram frequencies across live contracts) to pick only the patterns in [`opcode_synthetic.zig`](https://github.com/evmts/guillotine/blob/main/src/opcodes/opcode_synthetic.zig) and [`handlers_jump_synthetic.zig`](https://github.com/evmts/guillotine/blob/main/src/instructions/handlers_jump_synthetic.zig) that actually won on mainnet blocks.

## 3. Data-oriented design around 64-byte cache lines

CPUs fetch memory in 64-byte cache lines, and L1d is only 32 to 64 KB. [Mike Acton's CppCon 2014 talk](https://www.youtube.com/watch?v=rX0ItVEVjHc) and [Andrew Kelley's data-oriented design talk in Zig](https://www.youtube.com/watch?v=IroPQ150F6c) capture the exact approach we used: we spent more time on struct layout than on algorithms.

![Animated 64-byte L1 cache line streaming 8-byte Dispatch.Items](/images/how-the-fastest-evm-works/anim-cache-line-stream.gif)

* In `ReleaseFast`, every [`Dispatch.Item`](https://github.com/evmts/guillotine/blob/main/src/preprocessor/dispatch.zig) is an untagged 8-byte `extern union` (8 items per 64-byte cache line), with `PUSH9..PUSH32` limbs stored inline right after the handler pointer so `cursor` never chases pointers.
* Basic-block gas and stack bounds pack into one 8-byte [`JumpDestMetadata`](https://github.com/evmts/guillotine/blob/main/src/preprocessor/dispatch_metadata.zig) (`gas: u32, min_stack: u16, entry_span: u16`). One unsigned sub and compare (`height -% min_stack < entry_span`) [validates both underflow and overflow](https://github.com/evmts/guillotine/blob/main/src/core/verified_ops.zig) for the whole block, so every handler inside runs unchecked.
* In [`frame.zig`](https://github.com/evmts/guillotine/blob/main/src/frame/frame.zig), a `comptime` assertion breaks the build if `Frame`'s five hottest fields (`stack`, `gas_remaining`, `evm_ptr`, `database`, `memory`) ever spill past the first 128 bytes (2 cache lines), and [`Memory.Flat`](https://github.com/evmts/guillotine/blob/main/src/memory/memory.zig) puts buffer pointer and length in its first 16 bytes. Per-`Evm` [slab pools](https://github.com/evmts/guillotine/blob/main/src/internal/slab_pool.zig) avoid per-call `malloc`/`free`, and an O(1) [undo-log journal](https://github.com/evmts/guillotine/blob/main/src/storage/undo_log.zig) makes `deep_call_revert` 4.02x faster than `evm2`.

## 4. Three-tier execution and our zero-LLVM JIT

Across 100 real Osaka mainnet blocks (`26,498,000` to `26,498,099`), 28% of transactions are plain 21k ETH transfers, 64% use under 50k gas, and 91% use under 200k gas. Eager full-contract preprocessing (~700 µs on Seaport) hurts cold 1-shot calls, and LLVM JITs (`evm2-jit` on LLVM 23, [revmc](https://github.com/paradigmxyz/revmc) on LLVM 22) take 3.5 ms to 8.5 seconds per contract, which is why `evm2` leaves its JIT off by default.

![Three-tier adaptive execution in Guillotine](/images/how-the-fastest-evm-works/diagram-three-tier-jit.png)

* [Tier 0](https://github.com/evmts/guillotine/blob/main/src/frame/tco_tier0.zig): zero-alloc `preserve_none` bytecode interpreter with lazy 1-bit `JUMPDEST` scanning (scans only up to the highest jumped PC). Cold `seaport` dropped from `732 µs` to `1.04 µs` on M3 Max (`1.21 µs` on EPYC vs `evm2`'s `4.95 µs`).
* [Tier 1](https://github.com/evmts/guillotine/blob/main/src/frame/block_schedule.zig): compiles individual basic blocks lazily on visit #2 and executes them in Tier 1 from visit #3 onward, even mid-loop. Cold paths never compile.
* [Tier 2](https://github.com/evmts/guillotine/tree/main/src/jit): direct pure-Zig [AArch64](https://github.com/evmts/guillotine/blob/main/src/jit/codegen.zig) and [x86\_64](https://github.com/evmts/guillotine/blob/main/src/jit/x86_64_codegen.zig) emitter with zero LLVM dependency. Compiles in `12.3 µs` to `2.49 ms` on Linux x86\_64 (18x to 302x faster than LLVM 23, up to 13,000x faster on M3 Max).

Inside Tier 2, [`vstack.zig`](https://github.com/evmts/guillotine/blob/main/src/jit/vstack.zig) tracks deferred constants and statically known 64-bit values (`.reg_u64`), turning `DUP1..16` and `SWAP1..16` into zero emitted instructions and lowering 64-bit math to 1 or 2 native ops (`adds`, `mul` + `umulh`, `udiv`). In-bounds `MLOAD`/`MSTORE`/`CALLDATALOAD` inline past a single bounds check, and stateful ops call into `Evm` via [`host_trampolines.zig`](https://github.com/evmts/guillotine/blob/main/src/jit/host_trampolines.zig). All 31/31 [Criterion contracts](https://github.com/evmts/guillotine/blob/main/bench/compare/EVM2_CRITERION.md) run natively with 0 fallbacks: Guillotine wins 6/6 first-shot cold runs (`factorial` 276x, `curve_stableswap` 251x), splits warm-only x86\_64 3-3 against LLVM 23 (wins 25/25 on M3 Max), runs natively inside cold [Foundry](https://github.com/foundry-rs/foundry) `forge test` (1.00x to 1.59x vs `evm2` TCO, up to 8.05x vs `revm`), and hits 2,191 MGas/s inside [Reth](https://github.com/paradigmxyz/reth) (ahead of `evm2`'s LLVM JIT at 1,886 MGas/s with 30% less RAM).

## 5. How the EVM itself could change for speed

Two spec choices cause most of the friction every EVM client still fights:

![Where the EVM spec fights the CPU](/images/how-the-fastest-evm-works/diagram-evm-spec-bottlenecks.png)

* Dynamic storage gas breaks pre-analysis: under [EIP-2200](https://eips.ethereum.org/EIPS/eip-2200), [EIP-2929](https://eips.ethereum.org/EIPS/eip-2929), and [EIP-3529](https://eips.ethereum.org/EIPS/eip-3529), `SSTORE` gas depends at runtime on cold/warm state, original/current/new values, and the `2,300` stipend guard. Every `SSTORE`, `CALL*`, and `GAS` forces a basic-block split (`BLOCK_BEGIN`), blocking static gas batching across storage ops.
* Stack machine vs. register machine: real CPUs use registers, while the EVM burns a huge fraction of bytecode on `DUP`/`SWAP`/`POP` shuffling and 256-bit words for 64-bit offsets. Lowering EVM stack bytecode into an internal register ISA (like [Lua 5.0](https://www.lua.org/doc/jucs05.pdf), [LuaJIT](https://luajit.org/), and Dalvik/ART) is worth experimenting with in Guillotine. Because it overlaps heavily with our fusions, pinned `t0..t3`, and JIT `vstack` (and widens Tier 1 instructions per cache line), only real benchmarks will show how big the net win is, especially for interpreter-only targets like WebAssembly.

## 6. Verification, Guillotine Mini, and TigerStyle

Aggressive optimizations (fusions, batched gas, unchecked `_unsafe` stack handlers) are hard to debug if a bug corrupts one stack slot 5,000 ops before a state-root mismatch.

### Lockstep debugging with Guillotine Mini

[Guillotine Mini](https://github.com/evmts/guillotine-mini) (in-repo as [`MinimalEvm`](https://github.com/evmts/guillotine/blob/main/src/tracer/minimal_evm.zig)) is a plain, unoptimized `while` + `switch` interpreter with per-instruction gas and stack checks. In Debug, `ReleaseSafe`, and `-Denable-tracing` builds, [`Tracer`](https://github.com/evmts/guillotine/blob/main/src/tracer/tracer.zig) runs it in lockstep next to `Frame`. [`minimal_evm_sync.zig`](https://github.com/evmts/guillotine/blob/main/src/tracer/minimal_evm_sync.zig) maps every opcode at compile time (`instructionsCovered`) to 1, 2, or 3 sidecar steps (forgetting to map a new fusion is a compile error), then checks stack words, block gas, schedule tags, and exit status on every handler. Any divergence surfaces on the exact opcode where it started, and the entire sidecar compiles away to 0 bytes in untraced `ReleaseFast`.

![Lockstep sidecar validation between Guillotine Frame and Guillotine Mini](/images/how-the-fastest-evm-works/diagram-guillotine-mini-lockstep.png)

### TigerStyle and verification

Guillotine follows TigerBeetle's [TigerStyle](https://github.com/tigerbeetle/tigerbeetle/blob/main/docs/TIGER_STYLE.md) principles (full trade-offs in our [TigerStyle guide](/guides/tigerstyle) and [`TIGERSTYLE.md`](https://github.com/evmts/guillotine/blob/main/docs/dev/TIGERSTYLE.md)): explicit loop bounds via [`SafetyCounter`](https://github.com/evmts/guillotine/blob/main/src/internal/safety_counter.zig), zero swallowed errors (`catch {}` is banned), [native stack probing](https://github.com/evmts/guillotine/blob/main/src/native_stack.zig) for depth-1,024 calls, an [iterative MPT](https://github.com/evmts/guillotine/tree/main/src/trie), pooled EVMs with optional `FixedBufferAllocator` budgets, and full runtime invariants verified in `ReleaseSafe`.

Every tier passes:

* `66,652 / 66,652` (100%) official [Ethereum Execution Spec Tests](https://github.com/ethereum/execution-spec-tests) (`tests@v21.0.3`, Frontier through Osaka, fusions on/off, Tier 0, and Tier 2 JIT).
* `29,560 / 29,560` mainnet transactions across 100 Osaka blocks with zero gas diffs, plus Reth post-state MPT root parity (`0xc75e878a…6ccf4`).
* Four formal verification layers: [Zean](https://github.com/evmts/guillotine/tree/main/verify/zean) direct Zig `0.17.1` AIR to [Lean 4](https://lean-lang.org/) (`24` kernels, `55` `#audit_proof` theorems, `0` `sorry`), `129` hand-authored [Lean 4 theorems](https://github.com/evmts/guillotine/tree/main/verify/lean) + `116,384` fuzz vectors, `101` [Bitwuzla](https://bitwuzla.github.io/)/[Z3](https://github.com/Z3Prover/z3) [SMT proofs](https://github.com/evmts/guillotine/tree/main/verify/smt) (`132` source pins), and `23` `ReleaseFast` [LLVM IR proofs](https://github.com/evmts/guillotine/tree/main/verify/llvm).

## Contributors and dependencies

Huge thanks to everyone who contributed to Guillotine and [Voltaire](https://github.com/evmts/voltaire):

* [polarzero](https://github.com/0xpolarzero) ([@0xpolarzero](https://x.com/0xpolarzero)): `MinimalEvm` (EIP-2929, hardfork gas/refunds, `JUMP`/`JUMPI`), Prague spec test runner, TypeScript SDK & FFI tests, bytecode disassembler.
* [Vlad](https://github.com/vladfdp): pure-Zig elliptic-curve pairing math (Montgomery fields, Karatsuba Fp2, GLV/wNAF G1/G2 scalar mul, Miller loop) across Guillotine and Voltaire.
* [PO](https://github.com/pochenai) ([@pochenai](https://x.com/pochenai)) (macOS BN254 & Foundry fixes), [enitrat](https://github.com/enitrat) (Voltaire), plus Ömer Faruk IRMAK and Alex Rønne Petersen for upstream Zig `preserve_none`.

And credit to our dependency tree ([`build.zig.zon`](https://github.com/evmts/guillotine/blob/main/build.zig.zon), [`Cargo.toml`](https://github.com/evmts/guillotine/blob/main/Cargo.toml), [`lib/voltaire/Cargo.toml`](https://github.com/evmts/guillotine/blob/main/lib/voltaire/Cargo.toml)): [Voltaire](https://github.com/evmts/voltaire) (also maintained by us at Tevm), [Dani Popes](https://x.com/DaniPopes) ([`keccak-asm`](https://github.com/DaniPopes/keccak-asm), [`alloy-primitives`](https://github.com/alloy-rs/core), [`foundry-compilers`](https://github.com/foundry-rs/compilers)), [`tiny-keccak`](https://github.com/debris/tiny-keccak), Supranational's [`blst`](https://github.com/supranational/blst), Ethereum Foundation's [`c-kzg-4844`](https://github.com/ethereum/c-kzg-4844), [Arkworks](https://github.com/arkworks-rs/curves), [`aws-lc-rs`](https://github.com/aws/aws-lc-rs), [Zig](https://ziglang.org/), [`zBench`](https://github.com/hendriknielaender/zBench), and [`zig-clap`](https://github.com/Hejsil/zig-clap).

## Try it

Guillotine ships for Zig, [C ABI v4](https://github.com/evmts/guillotine/blob/main/src/evm_c_api.zig), [EVMC v12](https://github.com/evmts/guillotine/blob/main/src/evmc_c_api.zig), [TypeScript/Bun/Node](https://github.com/evmts/guillotine/tree/main/sdks/typescript) (`@tevm/guillotine`), and WebAssembly. Check live charts at [benchmarks.tevm.sh](https://benchmarks.tevm.sh) or reproduce locally with [`bench/run-evm2-criterion.sh`](https://github.com/evmts/guillotine/blob/main/bench/run-evm2-criterion.sh):

```bash
git clone https://github.com/evmts/guillotine && cd guillotine
zig build bench
./bench/run-evm2-criterion.sh
```

The code is open source at [github.com/evmts/guillotine](https://github.com/evmts/guillotine). If you find a benchmark where we aren't #1, open an issue.

We are looking for client teams, indexers, and app builders interested in adopting Guillotine. We are available for both free and paid consulting or FDE services to help with integration, custom opcodes, precompiles, or performance tuning. Reach out on [X (@tevmtools)](https://x.com/tevmtools) or in [Telegram](https://t.me/+ANThR9bHDLAwMjUx).
