Benchmarks
How LeonsDB compares with the databases Minecraft networks use today, under the loads a network puts on them: player joins, autosaves, payments, leaderboards and cross-server messages.
How it was measured
- Two dedicated machines (Hetzner CCX23: 4 dedicated vCPUs, 16 GB): one runs the database, the other the load.
- 1,000,000 stored players, 10,000 online.
- Every system writes every save to disk before it confirms it:
PostgreSQL with
synchronous_commit=on, MySQL flushing at each commit withsync_binlog, Redis withappendfsync always. Nobody gets to skip the part that keeps your data safe. - An open-loop load: each operation is due at a fixed time, and its latency is measured from then, so a stall shows in the results instead of slowing the load down.
- Three repetitions; every number is the median of the three. Times are in milliseconds, as p50 / p99.
The rival in each category is the strongest system that ran it: PostgreSQL, or MySQL with Redis for messaging.
A difference counts only when it is larger than the noise. The same autosave load ran twelve times per system in the same round; its spread (0.04–0.05 ms at p50, 0.10–0.14 ms at p99) sets the bar. Anything smaller is a tie.
Results
Shown: the categories where LeonsDB was ahead or level.
| Category | LeonsDB | Rival | Result |
|---|---|---|---|
| Payment between players (atomic) | 1.18 / 2.11 | PostgreSQL 1.40 / 2.45 | LeonsDB faster |
| Leaderboard: top 10, rank and saves together | 1.09 / 2.44 | PostgreSQL could not keep up | LeonsDB keeps up |
| Mixed network load | 1.56 / 3.12 | PostgreSQL could not keep up | LeonsDB keeps up |
| Highest autosave rate, one save at a time | 40,000/s | PostgreSQL 20,000/s | 2× the rate |
| Autosave at 10,000/s, p99 | 3.13 | PostgreSQL 3.39 | LeonsDB faster |
| Batched autosave at 10,000/s, p99 | 3.24 | PostgreSQL 3.44 | LeonsDB faster |
| Loading 1,000,000 players | 7 s | PostgreSQL 11 s | LeonsDB faster |
| Disk used after the load | 1,503 MB | PostgreSQL 2,228 MB | 32% less disk |
| Player join, first time | 0.93 / 2.07 | PostgreSQL 0.90 / 2.01 | level |
| Autosave, 10,000/s | 1.57 / 3.20 | PostgreSQL 1.57 / 3.32 | level |
| Batched autosave | 1.57 / 3.27 | PostgreSQL 1.58 / 3.30 | level |
| Batched autosave at 80,000/s, p99 | 26.1 | PostgreSQL 24.0 | level (within the noise) |
| Highest batched autosave rate | 80,000/s | PostgreSQL 80,000/s | level |
| Cross-server message, publish | 0.71 / 1.42 | MySQL + Redis 0.71 / 1.42 | level |
| Cross-server message, delivery | 0.34 / 0.62 | MySQL + Redis 0.31 / 0.56 | level (within the noise) |
| Crash test: the database killed mid-load | 117,361 saves confirmed, 0 lost | PostgreSQL 0 lost | level |
“Could not keep up” means the system fell behind the load it was given and never caught up during the run.
In an earlier round, on another pair of machines, LeonsDB was also ahead of MySQL and of MongoDB in every category they ran.
What this means for a network
LeonsDB is as fast as a well-tuned PostgreSQL where both are simple, and pulls ahead where Minecraft networks need it most: money moving between players, leaderboards under load, and how many saves a second one server takes. It does that with one program, no tuning and no separate Redis.
Results depend on hardware and setup; measure on your own if it matters to you. These numbers are not a promise of performance on your machines.