Benchmarks
Same machine, same four cores, same burst. Then we timed how long each one took to store it all, and watched the memory and CPU it spent doing it.
The race to 20,000
Each line counts the events a query could find, from the first request on. Rustrak had them all 6 seconds in. Sentry took the burst in two seconds and spent the next 104 writing it down.
Memory while it works
The whole stack, sampled every second: server, database, queues. Rustrak on SQLite sat at 51 MB before the burst and topped out at 88 MB. GlitchTip went from 205 MB to 423 MB.
Peak memory
CPU per event
All the CPU the stack burned between the first request and the last event stored, divided by 20,000. On a two-core VPS this is the number that decides how big a spike you can take.
Every number
Rustrak on its default SQLite and on PostgreSQL, Sentry with its errors-only profile and with everything on (53 containers). All of them stored every event.
| Rustrak | Rustrak | GlitchTip | Bugsink | Bugsink | Sentry | Sentry | |
|---|---|---|---|---|---|---|---|
| Version | 0.27.0 | 0.27.0 | 7.0.0 | 2.6.3 | 2.6.3 | 26.10.1 | 26.10.1 |
| Containers | 1 | 2 | 3 | 1 | 2 | 28 | 53 |
| Memory at rest | 51 MB | 62 MB | 205 MB | 309 MB | 341 MB | 7.4 GB | 13 GB |
| Memory at peak | 88 MB | 162 MB | 423 MB | 358 MB | 378 MB | 8.9 GB | 14.4 GB |
| Accepted per second | 3,697 | 4,044 | 712 | 1,440 | 407 | 13,697 | 12,704 |
| p99 latency | 7.5 ms | 13.3 ms | 87.3 ms | 17.9 ms | 49.5 ms | 2.1 ms | 2.6 ms |
| Stored per second | 3,333 | 2,222 | 690 | 127 | 71 | 189 | 163 |
| All 20,000 stored after | 6 s | 9 s | 29 s | 157 s | 280 s | 106 s | 123 s |
| CPU per event | 0.58 ms | 1.07 ms | 2.3 ms | 9.64 ms | 26.47 ms | 18.53 ms | 22.49 ms |
| Disk after the run | 305 MB | 209 MB | 297 MB | 421 MB | 759 MB | 2.4 GB | 2.4 GB |
| Images to pull | 100 MB | 510 MB | 1.9 GB | 418 MB | 834 MB | 10 GB | 12.4 GB |
| Ready after start | < 1 s | 9 s | 6 s | 5 s | 11 s | 25 s | 35 s |
What this does not tell you
- Sentry answers first. Relay accepted 13,697 events a second because it replies as soon as an event is on Kafka. Writing them to ClickHouse is what took 106 seconds.
- Sentry asks for 16 GB of swap and Docker Desktop gives its VM 1 GB. The feature-complete profile ran close to the edge, and in an earlier attempt ClickHouse was killed for lack of memory. Read the errors-only column as the fair one.
- Rustrak left more on disk with SQLite (305 MB) than with PostgreSQL (209 MB). That is the volume size right after the run; we did not dig into why.
- One run, in a VM on a Mac. Your server will give different absolute numbers. The distance between products is what carries over.
- Only ingestion was measured: no search, no dashboard, no features. Sentry does far more than the other three, and pays for it here.
How it was measured
- Machine
- Docker Desktop on an Apple silicon Mac (linux/arm64 VM, 12 CPUs, 16 GB RAM, 1 GB swap). One product at a time, each from empty volumes.
- Cores
- Every stack was pinned to the same 4 cores. The load generator and the sampler ran on the other eight, so neither took CPU from the product.
- Load
- 20,000 gzipped Sentry envelopes of about 20 KB, 16 in flight, spread over 2,000 different issues, posted to each product's envelope endpoint with a real DSN.
- Memory
- The cgroup
anoncounter of every container in the stack, added up once a second. That is memory the processes allocated, without the page cache the kernel can take back. - CPU
- CPU time of the whole stack from the first request to the last event stored, divided by the number of events.
- Stored
- A count of rows in each product's own events table (ClickHouse for Sentry), every 2 seconds once the burst ended. An event counts when a query can return it, not when the endpoint answers 200.
- Disk
- The size of the stack's Docker volumes right after the run.
- Configuration
- Each product's own Docker Compose file. We changed only what would have dropped events: rate limits, raised for everyone, and Bugsink's per-project limit of 10,000 stored events.
packages/benchmarks/compare/run.sh rustrak rustrak-pg glitchtip bugsink bugsink-sqlite sentry-errors sentry