The story’s score and claims

Comments on No. 19 of 81 · modulovalue · edition of Sunday 6 December 2026

ASCII Validation from 2.5 to 114 GB/s with SIMD

Summary

Modestas Valauskas rewrote a strict ASCII check in Dart in ten steps, reaching about 107–114 GB/s on an M3 MacBook Air while data fits in L1, from a scalar loop near 2.5 GB/s. The largest gains came from hoisting a constant, unrolling by eight, and disabling bounds and interrupt checks with pragmas. Benchmarks use all-ASCII input; a 2013 Intel Haswell CPU reached about 40 GB/s. An unrolled 64-bit SWAR version, with no SIMD types, reaches about 53 GB/s, a fallback where SIMD is missing.

Comments

Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules