Skip to content

Benchmarks

hashlib

Every algorithm that PointyCastle, crypto, and hash also implement, measured head to head. Filter by category, algorithm and input size, and switch between log and linear scales.

Won (all sizes)
56/63
Median
2.9×
Best
120×

Speed vs. the fastest alternative at the largest input, over 21 algorithms

Methodology

The numbers come straight from hashlib's BENCHMARK.md, generated by the benchmark harness in its repository and rebuilt into this page whenever the site is deployed. Nothing is typed in by hand.

Throughput is the amount of input processed per second, so higher is better. For key encapsulation it is the seed or ciphertext bytes handled per second, which scales with operations per second.

A win means hashlib was the fastest of all packages measured for that algorithm and input size; the speedup compares it with the fastest alternative. The alternatives are listed alongside.

Results depend on the machine, the runtime and the compile target. Treat them as a relative comparison measured under identical conditions, not as an absolute promise for your hardware.

hashlibRaw data ↗
Machine
36GB Apple M3 Pro
Runtime
compiled exe
Dart SDK
3.12.2 (stable) (Tue Jun 9 01:11:39 2026 -0700) on "macos_arm64"
Measured
Jul 9, 2026
Compared
PointyCastle, crypto, hash
Latest release
2.4.4 (benchmarks may predate it; see Measured)