Rust tokenizer hits 8.27 GB/s, far outpacing Hugging Face tokenizers in parallel tests
deliprao · x · 2026-07-25
A benchmark on an Apple M4 Max shows a huge tokenizer throughput gap in parallel workloads.
- Gigatoken (Rust-optimized) reaches 8.27 GB/s on GPT-2 tokenization over a 12 GB dataset.
- tiktoken hits 61.5 MB/s.
- HF tokenizers comes in at just 6.2 MB/s.
The post argues that Rust-based tokenizers can behave dramatically better than Python-based stacks when parallel throughput matters.
More from Infra
- LLM Serving Metrics Thread: Why TPOT and Uptime Make or Break User Experience — abhijithneil · 2026-09-11
- PlanetScale launches sharded Postgres: 768 servers acting as one, 1PB scale — dhruv2038 · 2026-09-11
- Can a 7900 XTX 24GB run Qwen locally? Reddit seeks ROCm tok/s benchmarks — thenomadexplorerlife · 2026-09-11
- RTK Terminal Compression Cuts Tokens but Leaves Your AI Coding Bill Unchanged — Bartaseth · 2026-09-11
- SF Compute founder: buying compute is 'an absolutely awful experience' right now — IgorCarron · 2026-09-11
- SmolVM open-sources persistent computer infrastructure for agents that outlive chat sessions — aniketmaurya · 2026-09-11