Fast-Anything Reports a 116x Python Speedup, and 8 of Its 9 Benchmark Rows Run One Job
Software / news
Fast-Anything Reports a 116x Python Speedup, and 8 of Its 9 Benchmark Rows Run One Job
The MIT-licensed tool ports hot functions to Rust with a coding agent, and its README gives no run counts or variance.

The fast-anything repository, which reached about 1.6k GitHub stars and 143 points on Hacker News on Nov. 22, reports a 116x speedup on one Python workload, and 8 of the 9 rows in its results table run the same fuzzy name-matching job.
The tool profiles an app, ports its hot functions to Rust with a coding agent, replays recorded calls against the port and swaps it in. The README says "One command, fully reversible," and the main command is fast-anything go --agent claude -- python app.py. The repository is MIT-licensed, owned by the account EL4CTEO, and showed 56 commits, 99 forks, 3 open issues and 2 open pull requests when we read it.

The README's results, all author-supplied
Every figure below comes from the project's own README and has not been reproduced by an independent party. The README says runs were on an i5-10500 under Windows 11, with the C and C++ rows on a 4-core GitHub Actions Linux runner. It gives no run counts or variance.
| Workload | Before | After | Speedup |
|---|---|---|---|
| Python fuzzy dedupe, 700 names | 4.91 s | 42 ms | 116x |
| PHP fuzzy dedupe, 600 names | 2.94 s | 53 ms | 55x |
| Go fuzzy dedupe, 3,000 names | 3.02 s | 144 ms | 21x |
| Java fuzzy dedupe, 4,000 names | 3.50 s | 1.18 s | 3x |
| C mandelbrot, 8 zoom levels | 431 ms | 127 ms | 3.4x |
- Python116 x
- PHP55 x
- Go21 x
- TypeScript20 x
- Ruby14 x
- C#13 x
- C mandelbrot3.4 x
- Java3 x
- C++2.7 x
Source: fast-anything README results table, accessed 2026-11-22
The README attributes the Java gap to JVM startup. It also says that porting only the inner levenshtein function gave "35x and 1.9x" against better results from the outer loop. The tool's design follows from that: it "ports the outermost loop it can, not the tiny function called inside it."
How it decides a port is safe
The verify step builds the port in release mode and replays up to 500 recorded calls. It adds derived edge cases such as NaN, positive and negative infinity, -0.0 and non-ASCII text, and floats must match within 1e-9. The README says "Nothing is enabled until every case matches," and a port that is slower per call than the original stays off.
That is a narrower guarantee than it sounds. Recorded calls cover the inputs the app happened to see during profiling, so a branch that never ran is never compared.
What Hacker News readers pushed on
The thread had 25 top-level comments. A commenter named tialaramex wrote that the strategy only works if 5 percent of the software is the problem, because of Amdahl's law, which caps the gain at what the hot code contributes. A commenter named afdbcreid observed that the repository itself is 62 percent Rust and 9 percent Python.
A commenter named perdy wrote that a Python web framework they maintain moved route matching, JSON encoding and request body parsing to Rust through PyO3 and left everything else in Python. That is the manual version of what fast-anything automates, and it sits alongside tools like CLI-Anything and OpenSRE that hand a job to a coding agent.
What to check before trying it
The tool needs a local Rust toolchain installed through rustup and runs on Python 3.10 or later, Node 22 or later, Ruby 3.3 or later and several other runtimes. It takes --agent claude, codex or any command that reads a prompt on standard input, so the port is written by whichever model the user pays for.
The README lists reproduction scripts in examples/. The first test worth running is the project's own bench command on an app that is not a name-matching loop.
Sources
More in Software
- 01Muru, Graham Dumpleton's Rust Server for Python Apps, Has 185 Open Issues and No BenchmarksThe mod_wsgi author's alpha project takes contributions as requirements rather than code, and its first post shows a 0.2 ms log line.
- 02ClawDOS Runs a Claude Coding Agent on a 4.77 MHz IBM PC XT, With TLS Handed to a TunnelThe GPLv3 project keeps a 176 KB harness on the 8088 and offloads encryption to a second machine, leaving a launched program 200K of the 640K.
- 03Levien's Next-100 Rust GUIs Post Counts About 20 New Toolkits and Bets Against egui's Immediate ModeThe Linebender author credits AI rewrites for the surge; egui's own README concedes the trade-off he is pressing on.
- 04C++26 Is Reopened: The 13–9–12 Ballot, the Enforced Label That Answers It, and What Is Still OpenSutter's Búzios report says the committee kept contracts, added one paper, and will send C++26 to a second ballot with no published date.