How many users fit on a $12 server?
Executive summary
- What it is: a benchmark of 15 languages and frameworks on the same $12-a-month DigitalOcean droplet, with 1 shared vCPU and 2 GB of memory. Nginx, the application and PostgreSQL run together on the same machine.
- Reference: the methodology is the one from Arjay McCandless's videos How Many Users Can a $12 Server Handle? and Which Programming Language Can Handle the Most Users on a $12 Server?.
- What it measures: how many concurrent users each one serves with a p95 under 500 ms, and how long it takes to import and export 1 million rows through PostgreSQL.
- Result: with each framework's default production setup, Rust, Go and C++ went past 7,700 users on average. Node.js landed near 3,300, and Laravel with PHP-FPM at 167.
- The caveat: the same Node code, on the same droplet type, held 1,600 users on one machine and 4,000 on another. That is why each stack ran three times, on different hosts.
- Cost: US$6.02 at DigitalOcean, per the invoice, and about US$590 of Claude at API prices. The Claude figure is not what I paid, since I use a subscription plan.
- Where to see it: on the Round X-Ray dashboard, with every round, the charts and side-by-side comparisons of experiments.
Did the summary catch your interest? Then keep going, the rest is for you. If it didn't, feel free to stop here: the essentials are up there, and your time is worth more than my text.
What it cost
The bill has two parts of very different sizes. The cloud cost six dollars, and Claude, which I used to write and run almost everything, would have cost almost a hundred times that if paid through the API.
At DigitalOcean
The October invoice closed at US$6.02, and no droplet was left running afterwards. Each experiment uses a pair of machines, the $12-a-month target and a $48-a-month load generator, which together cost about nine cents an hour.
| Part | Cost |
|---|---|
| Full experiment, 3 pairs for 18 to 21 hours | US$5.27 |
| Two initial tests, in Toronto and San Francisco | US$0.60 |
| Import and export, 3 targets for about 1.6 hours, plus a test | US$0.10 |
| CPU probe in 5 regions | US$0.05 |
| Total | US$6.02 |
The full experiment ran on its own, with the three pairs working in parallel for almost a day.
In Claude
The whole benchmark, from the 15 applications to the dashboard, was built with Claude Code. I measured the cost the same way as in the FITradeoff post, from the records of each response and with the API price table. That amount is not what I spent, since I use a subscription plan. It shows what the same work would cost paying for the API by usage.
| Part | Active time | Cost (API) |
|---|---|---|
| Benchmark and dashboard | ~21 h | US$568 |
| Publishing on the site | ~2 h | US$23 |
| Total | ~23 h | ≈ US$590 |
That came to about 1.2 billion tokens, close to 98% of them rereading the cached conversation, and about 3 million written by the model, code included. Almost everything ran on Claude Opus 5.5 and Fable 5.1. On the benchmark side, about 4 of the 21 hours were mine, reading answers and writing requests. I only counted stretches with activity, leaving out pauses longer than 10 minutes.
Where the question came from
The idea and the methodology came from two videos by Arjay McCandless, How Many Users Can a $12 Server Handle? and Which Programming Language Can Handle the Most Users on a $12 Server?. In the videos, a Node.js API with Express on a $12 droplet serves about 2,500 concurrent users, and eight languages are compared under the same conditions. I copied his methodology, with the same droplet, the same user model and the same capacity search, with three confirmation rounds at the end. To the eight languages from the videos, I added Ruby, C++, Object Pascal, Deno, Elixir and Lua with OpenResty, plus Laravel Octane as a PHP bonus.
How I measured
Each stack implements the same social network API, with a feed, posts and likes, and all of them use the same SQL, with no ORM. Nginx, the application and PostgreSQL share the same 1-vCPU machine, with no external cache and no Docker.
A user is a k6 virtual user that opens the feed, reads a post, sometimes likes or writes one, and waits a few seconds between steps, the way a person would. That comes to about 0.1 requests per second per user. Capacity is the largest number of users with a p95 under 500 ms, a p99 under 1 second and less than 1% errors over the whole round. The search doubles the number of users until the first failure, then keeps halving the interval, and the final value still has to pass three consecutive five-minute rounds.
The only difference from the videos is authentication. Here every route requires a JWT, which the application has to validate on every request.
What came out

| # | Stack | Mean | Lowest and highest |
|---|---|---|---|
| 1 | Rust + axum | 8,183 | 8,000 to 8,500 |
| 2 | Go + net/http | 7,783 | 7,200 to 8,100 |
| 3 | C++ + Drogon | 7,717 | 7,500 to 8,050 |
| 4 | Lua + OpenResty | 7,350 | 6,450 to 8,500 |
| 5 | Bun + Express | 4,800 | 4,250 to 5,400 |
| 6 | Deno + Express | 4,267 | 3,800 to 5,200 |
| 7 | C# + ASP.NET Core | 3,967 | 3,400 to 4,750 |
| 8 | Java + Spring Boot | 3,717 | 3,350 to 4,000 |
| 9 | Node.js + Express | 3,267 | 3,050 to 3,400 |
| 10 | Object Pascal + Horse | 3,133 | 2,850 to 3,400 |
| 11 | Elixir + Phoenix | 3,033 | 2,750 to 3,350 |
| 12 | Python + FastAPI | 2,867 | 2,500 to 3,400 |
| 13 | PHP + Laravel Octane | 1,450 | 1,400 to 1,500 |
| 14 | Ruby + Rails | 1,317 | 1,200 to 1,400 |
| 15 | PHP + Laravel with PHP-FPM | 167 | 150 to 200 |
Rust, Go, C++ and OpenResty landed between 7,000 and 8,500 users. From Bun to Python, the middle group landed between about 2,900 and 4,800. Node.js, even validating a JWT on every request, went past the videos' 2,500, but that comparison has limits, because the machine you happen to get changes the result a lot, as I explain below.
The lowest numbers come from the default setup. Ubuntu's PHP-FPM serves at most 5 requests at a time, and each Laravel request used about 43 ms of CPU, against 2.6 ms for Node, in the first reproduction. Laravel Octane, which keeps the framework loaded in memory between requests, reached 1,450. Rails 8 ships with 3 threads in Puma. Those ceilings were left in on purpose, because the question here is how much the default holds, and tuning them is left for the optimization phase.
The machine you get matters
Before the full experiment, I ran Node twice. In Toronto, it held 1,600 users. In San Francisco, a few hours later, it held 4,000. Same code, same droplet type, a 2.5-fold difference. On the first machine, other customers on the same physical server took 15% to 48% of the CPU during the rounds, which is called CPU steal, and the processor was one of the slowest in the region. In a probe across five regions, the same $12 vCPU computed SHA-256 at between 232 and 360 MB/s.
That is why the full experiment ran three times, on three different hosts at the same time, and every result comes with the CPU speed and the steal measured during the round. The dashboard's margin of error includes that variation, which is the real uncertainty of renting a $12 droplet. Even so, small differences, like the ones separating Deno, C# and Java, fall inside that margin.
Importing and exporting a file
The second experiment uses only the target, with no load generator. Each language imports a file of 1 million rows into a database with five tables and foreign keys, in batches of a thousand, and then exports the database's 2 million rows back to a file, which has to come out identical to the expected one. All of them read and write with the standard library and use the same SQL.
On import, the 14 languages took between 93 and 152 seconds, with Rust and Go in front and Python and Deno at the end. On export, between 52 and 83 seconds. The gap is smaller than in the web test because PostgreSQL does most of the work, using 2 to 13 times the program's CPU while sharing the same vCPU with it. One of the three reproductions was 25% to 40% slower for every language, but the order among them repeated.
The dashboard
The results live on Round X-Ray, in Portuguese, English and Spanish. Each language has a page with the three reproductions, the search round by round, CPU and memory usage and the import pace second by second, and you can compare experiments side by side.

Where the numbers can mislead
So far, each stack has only been measured with its default setup, so the ranking above says how much the default holds, not the best each language can do.
The vCPU is shared, and the full experiment ran in a single region. Results vary between days and hosts, which is why the dashboard shows the lowest and highest values along with the mean.
The load model is closed. When the server slows down, the virtual users send fewer requests, which hides part of the overload. I kept it that way to stay faithful to the videos, and that is why the dashboard also shows requests per second.
The data is synthetic and uniform, without the most-visited posts a real site would have, which favor any cache. Every route validates a JWT, but the login that issues the token is left out of the measurement. And the import test does not yet record CPU steal or disk wait.