Compare
Both install as one container on SQLite and take events from the Sentry SDKs. We ran both that way on the same four cores, then ran Bugsink again on PostgreSQL from its own Compose file.
26×faster to store 20,000 events: 6 s against 157 s, both on SQLite.
17×less CPU per event: 0.58 ms against 9.64 ms.
4.1×less memory: 88 MB against 358 MB, one container each.
What one CPU core buys
Divide a second of CPU by what each event cost. Rustrak gets through 1,724 events; Bugsink on the same SQLite, 104.
- Rustrak (SQLite)1,724 events per CPU-second
- Rustrak (PostgreSQL)935 events per CPU-second
- Bugsink (SQLite)104 events per CPU-second
- Bugsink (PostgreSQL)38 events per CPU-second
The burst, replayed
On SQLite Bugsink had the last event at 157 seconds; on PostgreSQL at 280. Rustrak was done at 6.
0.0 s
- Rustrak (SQLite)0 stored
- Rustrak (PostgreSQL)0 stored
- Bugsink (SQLite)0 stored
- Bugsink (PostgreSQL)0 stored
Every number
Same machine, same four cores, one product at a time. Every product stored every event.
| Rustrak | Rustrak | Bugsink | Bugsink | |
|---|---|---|---|---|
| Version | 0.27.0 | 0.27.0 | 2.6.3 | 2.6.3 |
| Containers | 1 | 2 | 1 | 2 |
| Memory at rest | 51 MB | 62 MB | 309 MB | 341 MB |
| Memory at peak | 88 MB | 162 MB | 358 MB | 378 MB |
| Accepted per second | 3,697 | 4,044 | 1,440 | 407 |
| p99 latency | 7.5 ms | 13.3 ms | 17.9 ms | 49.5 ms |
| Stored per second | 3,333 | 2,222 | 127 | 71 |
| All 20,000 stored after | 6 s | 9 s | 157 s | 280 s |
| CPU per event | 0.58 ms | 1.07 ms | 9.64 ms | 26.47 ms |
| Disk after the run | 305 MB | 209 MB | 421 MB | 759 MB |
| Images to pull | 100 MB | 510 MB | 418 MB | 834 MB |
| Ready after start | < 1 s | 9 s | 5 s | 11 s |
What you would be running
| Rustrak | Bugsink | |
|---|---|---|
| License | AGPL-3.0 | PolyForm Shield 1.0.0, source-available |
| Written in | Rust | Python (Django) |
| What it stores into | SQLite, or PostgreSQL | SQLite, MySQL or PostgreSQL |
| Published minimum | None published | None published |
| Containers in our run | 1 (2 with PostgreSQL) | 1 (2 with PostgreSQL) |
Switching is one line
Your apps already speak the Sentry protocol. Start Rustrak, then point the DSN at it.
docker run -d --name rustrak -p 8080:8080 \
-v rustrak_data:/data \
-e SESSION_SECRET_KEY=$(openssl rand -hex 32) \
-e CREATE_SUPERUSER=you@example.com:change-me \
-e PUBLIC_URL=https://errors.example.com \
rustrak/rustrak-server:latestdsn: "https://key@old-host/1", dsn: "https://key@errors.example.com/1",
Questions
- Is Bugsink open source?
- Bugsink is published under the PolyForm Shield License 1.0.0, which is source-available and not an OSI-approved open-source license. Rustrak is AGPL-3.0.
- Which is faster, Bugsink or Rustrak?
- Both on SQLite, Rustrak stored a burst of 20,000 events in 6 seconds and Bugsink in 157, using 0.58 ms and 9.64 ms of CPU per event.
- Does Rustrak do more than errors?
- Yes: tracing, logs, cron monitors, releases with crash-free sessions and user feedback, all from the same Sentry SDK you already send errors with.
