Project notes

CPU Benchmark

CPU Benchmark is a browser-based tool that measures single-core and multi-core performance. It uses Web Workers for concurrency, SharedArrayBuffer for timing coordination between threads, and a small compute kernel written directly in WebAssembly bytecode rather than compiled from source.

Methodology, implementation, and limitations

What I Built

Why It Matters

Benchmark Methodology

What The Scores Mean

Accuracy Safeguards

Known Limits

What The Browser Cannot Control

Notable Implementation Details

Files

cpu-benchmark.html Page structure, controls, result panels, and the embedded fallback copy of the worker source.
cpu-benchmark.js Orchestrates workers, rotates warm-up and measured phases, verifies checksums, computes scores and observed spread, and renders results.
cpu-worker.js Hand-assembles and runs the WebAssembly benchmark kernel inside each worker thread.
cpu-benchmark-test.js Node tests for the scoring math, the score-rendering path, and the worker-loading fallback logic.
Open project Back To Projects