We ran Dinghy on a 4 GB server and used another server to open chats, send messages and upload photos. Here’s what the test measured.
How we set it up
The server under test was a Hetzner CX23 in Falkenstein, 2 shared vCPUs and 4 GB of memory. It ran the real install, the same compose.yaml the install script gives you, with one process doing both web requests and background jobs.
A second CX23 in the same data center played the visitors. It opened chats, sent messages and uploaded photos.
Every visitor message set off a push notification, which the server had to encrypt and send to a stand-in push service. Every upload was a 3.9 MB, 12-megapixel JPEG, which the server decodes and shrinks like it does real photos.
What it held
5,000 chats open at once, 20 messages a second, and one big photo every second. Memory peaked at 539 MB. Zero messages lost. Half arrived within 30 ms, 99% within 628 ms.
The install used about 185 MB at idle.
What broke first
Not memory. Even at the peak, most of the 4 GB was free.
The limit was messages per second in one workspace. At 50 a second everything stayed quick. When we asked for 100, the server managed about 90, and messages started arriving 9 to 15 seconds late. Messages in one workspace take turns on one database row, and that puts a ceiling on each workspace.
Photos had a ceiling too, at about 2.6 of those big files a second. Past that, the server turned extra uploads away with an error, and chat messages kept flowing meanwhile.
The bigger number
The day before, we tested open connections alone, no background jobs and no photos. The same size of server held 20,000 open chats in about 1 GB of memory. Opening all of them took 70 seconds, with the CPU close to its limit.
What this test doesn't tell you
No HTTPS on the server under test, and in real life encryption costs some CPU. The push service was a stand-in, not Apple's or Google's. Email was off, and photos stayed on the server's disk instead of S3. And it was all one workspace. Separate workspaces don't share that database row, so they should handle more messages in total. We haven't measured it.
The measurements page has every number, plus the commands to run the test yourself. Getting different results? Email us, I'd like to know.