Wasm vs JavaScript

Track B Optimizations

Track A vs Track B, side by side

Every benchmark runs both tracks automatically in one pass. Track A holds the algorithm constant across languages; Track B adds target-specific optimizations (like Wasm SIMD128, loop tiling, or flat JS typed-array layouts) and compares each variant directly against its own Track A baseline, with source links to both implementations below.

What is the difference between Track A and Track B?

Track A: Controlled Baseline

Every language (JS, WAT, C, C++, Rust, AssemblyScript, Dart) runs the exact same algorithm and fixed input at standard optimization flags (-O3 / -O) with no SIMD intrinsics or target-specific rewrites. Use Track A to compare languages on equal footing.

Track B: Target-Specific Optimization

Keeps Track A untouched and lets a single target use hardware or language strengths (-msimd128, register blocking, cache tiling, or flat typed arrays) while still passing the same output oracle. Track B ratios always measure speedup over that same language's Track A baseline.

Spec, equivalence rules, and optimization logs: docs/track-b-optimizations.md.