Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Chips and Cheese 13 min read Research hardMaster

On Binary Translation and its Consequences

Running Geekbench 7's x86-64 build under Windows 11's Prism binary translator roughly doubles executed aarch64 instruction counts and costs several CPU generations' worth of performance, with vectorized AVX workloads like Video Player hit hardest and branch/memory-bound ones like Navigation least. Snapdragon X2 Elite cores claw back some overhead through spare core width and large out-of-order engines, while Neoverse N1 and N2 suffer more from backend stalls and high L2-miss latency. Disassembly of Prism's XtaCache shows 256-bit AVX split into paired 128-bit NEON ops, extra instructions to emulate x86 addressing modes and load-op fusion, and unnecessary register spills that a human translator would avoid.

Assumes: CPU microarchitecture and IPCx86-64 and aarch64 ISAsSIMD (AVX, NEON)top-down performance analysis

Related posts

  • “Performance” Oryon: Qualcomm’s Little Core

    Chips and Cheese hardMaster

    Qualcomm's Snapdragon X2 Elite "performance" cores are really efficiency cores: a 4-wide, 3.6 GHz out-of-order design that trades peak throughput for lower power while still performing well thanks to solid branch prediction, Zen 4-class reorder buffer and register file sizes, and large, low-latency caches. Microbenchmarks show a 1024-entry decoupled BTB, a 40-entry return stack, a 128 KB L1i, and a 64 KB L1D with 3-cycle latency. The 21-cycle shared L2 is fast for its capacity and delivers over 400 GB/s across six cores. Weaker spots include move elimination that fails on tightly chained MOVs, very limited add-immediate elimination, a 128-bit SVE implementation, and slow gathers. The conclusion is that a 4-wide core is a sensible design point for background and lightweight work, compared against Intel's Skymont and Arm's Neoverse cores.

  • Qualcomm’s Oryon 3 Reaches the Top

    Chips and Cheese hardMaster

    Qualcomm's Oryon 3 P-core in the Snapdragon X2 Elite keeps Oryon 1's large out-of-order backend, with a ~675-entry ROB, and its speed-focused two-level cache. On top of that it raises clocks to 5 GHz, widens the core from 8 to 9 micro-ops, and adds SVE2/SME with a new 120-entry predicate register file. Microbenchmarks show doubled code fetch bandwidth from L2, zero-bubble taken branches across a 2048-branch footprint, a larger conditional predictor, graceful return-stack overflow, and robust store forwarding that avoids partial-overlap penalties. Oryon 3 still cannot handle multiple taken branches per cycle, is limited to 128-bit vectors, and has slow general-case SVE gathers, which leaves it behind Zen 5, Lion Cove and Cortex X925 in some areas while matching or beating them in others.

  • NVIDIA’s Olympus Core: Pushing Server Single Threaded Performance Boundaries

    Chips and Cheese hardMaster

    NVIDIA's Olympus core in the Vera CPU is a 10-wide out-of-order design running at only 3.3 GHz. It aims for near-desktop single-threaded performance through very high per-clock throughput, using huge reorder structures in a layout similar to Arm's Cortex X925. Microbenchmarks show a branch predictor competitive with Zen 5 that sustains two taken branches per cycle, a 96 KB L1D, and a 2 MB L2 at 10-cycle latency. Store forwarding is quirky, with 32B mid-cacheline hiccups and 12-13 cycle penalties for partial overlaps. Its SMT implementation statically partitions nearly everything, including BTBs, caches, schedulers and execution throughput, so a second thread halves per-thread resources even when the sibling is idle-ish.

  • When to choose x86-64 vs aarch64

    PlanetScale mediumAdept

    Choosing between aarch64 and x86-64 for a Postgres cluster matters because vCPUs differ: x86 cloud vCPUs are usually hyperthreads sharing a core, while Graviton and Axion vCPUs are full cores. ARM suits many concurrent small queries plus autovacuum and parallel workers, while x86 wins on single-threaded CPU-bound queries through higher clock speeds and wider AVX2/AVX-512 vectors, which TIN bitmap intersection and pgvector distance code exploit. Architecture can't be switched via physical replication because on-disk files aren't portable (e.g. pg_trgm index ordering differs due to signed vs unsigned char defaults), so migrating requires logical replication to a new cluster. ARM is the recommended default for price/performance; benchmark both at expected concurrency when it matters.

  • Contributing support for a Wasm instruction to Winch

    Shopify Engineering hardMaster

    Adding a WebAssembly instruction to Winch, Wasmtime's baseline non-optimizing compiler, touches several layers: the wasmparser VisitOperator visitor, the CodeGenContext that manages the value stack, register allocation and spilling, an ISA-independent MacroAssembler, and an x86_64 assembler built on Cranelift's ISLE-generated instruction definitions. The i32.clz example shows how the MacroAssembler emits lzcnt when the CPU supports it and otherwise falls back to a bsr/setne sequence. Changes are tested in two ways: filetests check the emitted machine code without running it, so they work on AArch64 Macs, and differential fuzzing on x86_64 hardware compares Winch's results against another Wasm engine.

The quest for software engineering knowledge.

Look:
Layout: