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.

6 suntil Rustrak had all 20,000 stored. GlitchTip took 29 s, Sentry 106 s, Bugsink 157 s on SQLite and 280 s on PostgreSQL.
88 MBof memory at its busiest. GlitchTip reached 423 MB, Sentry 8.9 GB.
0.58 msof CPU per event, database included. Sentry spent 18.53 ms.
1container. Sentry's smallest profile starts 28.

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.

Time runs on a log scale, so a 6-second finish and a 280-second one fit on one chart. Counted every 2 seconds after the burst ended; before the first count the line is drawn straight. Hover for every product at any second.

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.

Sentry is left off this chart. It idled at 7.4 GB before the first event arrived, and on the same scale every other line would sit flat on the floor.

Peak memory

Peak memory, all on one scale. Hover a bar for its value.

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.

RustrakSQLiteRustrakPostgreSQLGlitchTipall-in-oneBugsinkSQLiteBugsinkPostgreSQLSentryerrors-onlySentryfeature-complete
Version0.27.00.27.07.0.02.6.32.6.326.10.126.10.1
Containers123122853
Memory at restMedian of the 15 s before the burst51 MB62 MB205 MB309 MB341 MB7.4 GB13 GB
Memory at peakHighest second, burst to end88 MB162 MB423 MB358 MB378 MB8.9 GB14.4 GB
Accepted per second2xx answers over the burst3,6974,0447121,44040713,69712,704
p99 latency7.5 ms13.3 ms87.3 ms17.9 ms49.5 ms2.1 ms2.6 ms
Stored per secondQueryable in the database3,3332,22269012771189163
All 20,000 stored after6 s9 s29 s157 s280 s106 s123 s
CPU per event0.58 ms1.07 ms2.3 ms9.64 ms26.47 ms18.53 ms22.49 ms
Disk after the run305 MB209 MB297 MB421 MB759 MB2.4 GB2.4 GB
Images to pull100 MB510 MB1.9 GB418 MB834 MB10 GB12.4 GB
Ready after startInstall and image pulls excluded< 1 s9 s6 s5 s11 s25 s35 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 anon counter 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.
# Docker, and about 16 GB free for Sentry
packages/benchmarks/compare/run.sh rustrak rustrak-pg glitchtip bugsink bugsink-sqlite sentry-errors sentry