upvote
Yep the last couple weeks I had a couple of Claude Opus sessions hammering on the performance of the Android projectM visualizer app on an underpowered Xiaomi L1 projector. When I ran the original app I was getting like 20fps at low resolutions. After 2 weeks I was pretty much staying at 60fps at HD resolutions.

Since the Claude sessions could test on the real device using WiFi ADB (sharing the one test device using a lock system and via communicating directly between sessions) they would run performance tests, take screenshots for comparisons, etc as well as run tests on the host machine including creating videos for me.

As you said, having a measurable outcome makes all the difference. They just kept chipping away at various performance areas, taking measurements to see what to work on next, and repeating that. It was directed by me including giving them ideas on what areas to check or ideas for optimizations, and confirming the output myself for things where I allowed them to degrade the quality for performance, but for the most part it was Claude and I probably could have just set it and forgot about it and still gotten decent improvements.

It was also helpful that I only needed it to run well on that one device and it’s a private personal fork, so I didn’t have to worry about compatibility or general code quality, just that it works.

reply
That’s interesting. Can you link to the project?
reply
reply
thank you for sharing, this is very useful to me.

building t3code into my app runtime, needed a rust backend.

reply
P.S. the performance gains are pretty extraordinary. From performance.md just 22 minutes ago:

From the latest CI run, on a GitHub-hosted runner. A ratio above 1× favors Ferrum.

- Installed size: 2.7× in Ferrum's favor (75.4 MiB against 203 MiB). - Start to first RPC: 33.8× in Ferrum's favor (59.8 ms (57.9–66.2) against 2019 ms (1967–2030)). - Memory at idle (RSS): 12.2× in Ferrum's favor (41.8 MiB (41.1–42.1) against 512 MiB (511–513)). - CPU while idle (per 10 s): 2.0× in Ferrum's favor (10.0 ms (10.0–20.0) against 20.0 ms (20.0–30.0)). - CPU while idle, large database with clients (per 10 s): 1.0× in the reference's favor (20.0 ms (20.0–20.0) against 20.0 ms (20.0–20.0)). - Memory at idle, large database: 3.5× in Ferrum's favor (151 MiB (142–159) against 520 MiB (517–522)). - Peak memory, 3 clients opening long threads: 3.2× in Ferrum's favor (386 MiB against 1233 MiB). - GET / p99 while 3 clients open long threads: 55.9× in Ferrum's favor (1.50 ms against 83.7 ms). - Peak memory, Codex turns: 11.0× in Ferrum's favor (59.3 MiB (58.7–59.6) against 650 MiB (645–661)). - Peak memory, Claude turns: 11.3× in Ferrum's favor (57.9 MiB (57.5–58.4) against 656 MiB (648–675)). - Codex turns per second: 1.3× in the reference's favor (5.57 /s (5.43–5.70) against 7.27 /s (7.18–7.40)). - Claude turns per second: 1.3× in the reference's favor (4.62 /s (4.59–4.72) against 5.92 /s (5.89–5.93)). - CPU per Codex turn: 1.0× in Ferrum's favor (216 ms (211–225) against 221 ms (218–228)). - CPU per Claude turn: 1.0× in Ferrum's favor (289 ms (285–293) against 290 ms (290–291)). - RPC latency (p50 and p95 of 6 RPCs): from 1.3× to 13.9× (above 1× favors Ferrum).

https://github.com/ttulttul/Ferrum/blob/main/docs/performanc...

But perhaps the coolest thing is the WAY that agents built this thing. I basically just kept using T3 Code on my Mac while agents periodically swapped out the T3 Code server back-end for Ferrum. At first, it would do a 30-second swap test because they mostly failed. But over time, the swap-out duration lengthened and lengthened. Now, it's possible to just run it all the time.

And, I bolted Ferrum onto Cloudflare Workers for an internal software factory project, allowing you to run T3 Code sessions inside of the same sandbox environment that our software factory agents live inside. And it's all super performant. A very cool and satisfying project.

reply