BLAKE3 vs SHA-256 — comparative suite

Side-by-side measurements and structural analysis of the two hash functions. Empirical scripts produce numerical output; data-only documents survey the published literature. Every claim is either measured locally and JSON-logged, or sourced.

Source: contrib/testing/compare/ Output: results/*.json Latest: see individual pages

1. Empirical comparisons (run locally)

2. Structural / data-only comparisons

3. Run all empirical comparisons

cd b3chain
bash contrib/testing/compare/run-all-compare.sh

Each script prints a markdown table on stdout and writes a JSON file under contrib/testing/compare/results/. The hub page above is regenerated from results/latest.json when the site is deployed.

4. Honesty caveats

  • Throughput numbers vary substantially by CPU, cache size, and thermal state. Each result records cpu_model and cores so you can re-interpret.
  • The BLAKE3 throughput advantage is largest on multi-thread large-input workloads. Single-thread 80-byte hashing through a Python wrapper is dominated by call overhead.
  • The length-extension demo is about construction differences. Bitcoin's SHA-256d sidesteps the LE issue intentionally; BLAKE3 sidesteps it by design.
  • SHA-256 ASICs are a mature market with a 15-year head start. BLAKE3 ASICs are nascent. This asymmetry is part of why we picked BLAKE3 for launch security; it is not a permanent property.