

Timings tell you that something is slow. Counters tell you why.
perf stat, Instruments, or a library such as performancecounters.
Frontier models in 2026 are genuinely good at:
Help your agent.
llvm-mca (or perf) so it can see cycles, not vibesThen let it iterate.
std::unordered_map, 12.8 nsLibrary: github.com/ConstexprCore/perfect_hash (with Francisco Geiman Thiesen at Microsoft)
1.19 ns, 4.9 cycles, 8.7 instructions per cycle, zero branch mispredictions.
Encodes binary data as text using 64 characters (A-Z, a-z, 0-9, +, /)
3 bytes input โ 4 characters output (33% overhead)
Data URLs, email, JWTs, web APIs, embedded images
"Hello, World!" โ SGVsbG8sIFdvcmxkIQ==
Bit manipulation on a fixed schedule: the ideal SIMD problem.
const b64 = Uint8Array.prototype.toBase64(bytes);
const recovered = Uint8Array.fromBase64(b64);
| function (Safari, Apple M4) | speed |
|---|---|
Uint8Array.fromBase64() |
11 GiB/s |
Uint8Array.toBase64() |
20 GiB/s |
Test in your browser: https://simdutf.github.io/browserbase64/
Uint8Array.fromBase64 follows WHATWG forgiving base64: ignore ASCII whitespace, reject anything else\n and it falls back to a byte loopKeep the SIMD throughput on input that has whitespace in it.
vpermb (twice) and vpmultishiftqb.============ PART 1 ============
============ PART 5 ============
============ JSON ============
============ IP ADDRESSES ============
============ PART 5 ============
============ UNICODE ============
============ PART 7 ============
https://lemire.me/blog/2023/04/27/hotspot-performance-engineering-fails/
https://lemire.me/blog/2023/04/27/hotspot-performance-engineering-fails/
============ PART 6 ============
============ PERFECT HASHING ============
============ PART 8 ============