# M3DB vs GreptimeDB vs OpenObserve: Metrics Benchmark

> We sent the same 2.2 billion samples and 1.34 million series into M3DB v1.6.0, GreptimeDB v1.3.1 and OpenObserve v1.2.0, each on its own Mac mini, then ran identical PromQL over identical time windows. OpenObserve answered all 16 query and window combinations fastest.

Source: https://openobserve.ai/blog/m3db-greptimedb-openobserve-benchmark/
Published: 2026-11-29
Authors: Prabhat Sharma
Category: Engineering
Tags: OpenObserve, Metrics, Observability, Monitoring, Comparisons, SRE

---

M3DB vs GreptimeDB vs OpenObserve: we sent the same 2.2 billion samples and 1.34 million series to all three, gave each its own identical Mac mini, and ran identical PromQL. OpenObserve v1.2.0 answered all 16 query and window combinations fastest. On the heaviest query, a million-series histogram over 6 hours, it returned in 1.9 seconds; GreptimeDB took 94 seconds and M3DB did not answer within 600 seconds.

## TL;DR

- **One dataset, three systems:** 2,218,011,632 samples across 1,338,330 series sent to each of M3DB, GreptimeDB and OpenObserve, with the same series count on all three; each running natively on its own M6 Mac mini, 12 cores / 24 GB, internal SSD, no containers and no limits.
- **Fastest in all 16 cells:** geomean latency 58 ms for OpenObserve against 4,355 ms for GreptimeDB, or 1.3% of its latency. On the 14 cells M3DB answered, OpenObserve's geomean is 36 ms against M3DB's 4,971 ms, or 0.73%.
- **Same Rust and DataFusion, very different speed:** OpenObserve and GreptimeDB are both Rust, both query with Apache Arrow and DataFusion, and both store Parquet. The results are far apart, and the [reason is what each builds on top](#same-rust-same-datafusion-very-different-results).
- **Million-series histogram, 6h:** OpenObserve 1.9s, GreptimeDB 94s; M3DB timed out on every request at 3h and 6h.
- **Ingest:** OpenObserve took the backfill in 14m 32s at 2.7 core-seconds per million samples, GreptimeDB in 18m 17s at 3.4, M3DB in 4h 32m at about 52. Once OpenObserve's compaction is counted, it and GreptimeDB spend the same CPU, about 8,200 core-seconds each.
- **Storage:** 2.29 GB for OpenObserve, 5.70 GB for M3DB, 8.94 GB for GreptimeDB.
- **Reproducible:** the queries, scripts and [full report](https://github.com/openobserve/openobserve-metrics-benchmark/blob/main/RESULTS-m3db-greptimedb.md) are in the [openobserve-metrics-benchmark repository](https://github.com/openobserve/openobserve-metrics-benchmark).

<div data-benchmark-chart class="not-prose my-8" data-config='{"title":"histogram_quantile over 1,179,360 series, 6-hour window (median)","subtitle":"Same data · same PromQL · one M6 Mac mini each, 12 cores / 24 GB · M3DB timed out, so it has no bar","caption":"Figure 1 · The million-series histogram over 6 hours. Bar lengths to real scale.","bars":[{"label":"M3DB","value":0,"display":"timed out (> 600s)","color":"#c14920","note":"No request answered within the 600s timeout"},{"label":"GreptimeDB","value":94.3,"display":"94s","color":"#185fa5"},{"label":"OpenObserve","value":1.93,"display":"1.9s","color":"#0f6e56"}],"callout":{"text":"1.9s against 94s for GreptimeDB","note":"M3DB did not answer within 600s on any request"}}'></div>

## Why benchmark M3DB and GreptimeDB?

This is the companion to our [Prometheus, Mimir and VictoriaMetrics benchmark](/blog/prometheus-mimir-victoriametrics-openobserve-benchmark/). It uses the same dataset, the same four PromQL queries and the same time windows, and puts OpenObserve against two more backends that teams consider when Prometheus alone runs out of room.

M3DB was built at Uber to handle metrics at very high scale and with high performance, and was open-sourced as part of the M3 platform. Its creators went on to found Chronosphere, whose observability platform is built on M3. M3DB is a distributed time-series database used as Prometheus remote storage, with the M3 coordinator in front of it accepting remote write and answering PromQL. GreptimeDB is an open source time-series database that accepts Prometheus remote write into its metric engine and answers both PromQL and SQL.

High cardinality is where metrics backends are tested, and this dataset is built for it: a single histogram with a few labels produces 1,179,360 `_bucket` series, and the dashboards on top of it run `histogram_quantile` and `rate` across all of them. If [Prometheus cardinality](/blog/prometheus-data-cardinality/) is already your problem, the useful question is which backend still answers those queries quickly, and what it costs to get the data in.

OpenObserve stores metrics as columnar Parquet with a metrics index alongside and answers PromQL over that data. This round runs OpenObserve v1.2.0, and for the first time it also measures ingest: how long each system takes to accept the data, the CPU it spends, and the memory and disk it needs along the way.

## How we ran the benchmark

The query runner, the query set and the measurement scripts live in the [benchmark repository](https://github.com/openobserve/openobserve-metrics-benchmark); the full results for this round are in [RESULTS-m3db-greptimedb.md](https://github.com/openobserve/openobserve-metrics-benchmark/blob/main/RESULTS-m3db-greptimedb.md).

<div class="not-prose my-8" style="background:#faf8f3;border:1px solid #e0d9c8;border-radius:8px;padding:20px 16px 14px;overflow-x:auto"><svg viewBox="0 0 746 304" width="100%" style="min-width:560px;display:block;margin:0 auto;max-width:746px" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Benchmark setup diagram"><defs><marker id="ah-m3g" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#8a8a82"/></marker></defs><rect x="10" y="8" width="226" height="266" rx="10" fill="none" stroke="#e0d9c8" stroke-dasharray="4 4"/><text x="123.0" y="29.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="middle" font-weight="700">Mac mini · M6</text><text x="123.0" y="45.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#8a8a82" text-anchor="middle" font-weight="400">12 cores · 24 GB · internal SSD</text><rect x="24" y="58" width="198" height="48" rx="8" fill="#fff" stroke="#e0d9c8"/><text x="123.0" y="78.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="13" fill="#1a1a17" text-anchor="middle" font-weight="700">fake-webserver v5</text><text x="123.0" y="96.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="middle" font-weight="400">backfill · 7h at 15s · seed 1</text><path d="M123.0,108 L123.0,134" fill="none" stroke="#8a8a82" stroke-width="1.6" marker-end="url(#ah-m3g)"/><text x="131.0" y="125.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#8a8a82" text-anchor="start" font-weight="400">remote write</text><rect x="24" y="138" width="198" height="52" rx="8" fill="#fff" stroke="#e0d9c8"/><rect x="24" y="138" width="6" height="52" rx="3" fill="#c14920"/><text x="42.0" y="160.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#1a1a17" text-anchor="start" font-weight="700">M3DB</text><text x="42.0" y="179.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="start" font-weight="400">v1.6.0 · coordinator + etcd</text><rect x="24" y="216" width="198" height="46" rx="8" fill="#fff" stroke="#e0d9c8"/><text x="123.0" y="235.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="13" fill="#1a1a17" text-anchor="middle" font-weight="700">query runner</text><text x="123.0" y="252.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="middle" font-weight="400">curl + python, after settling</text><path d="M123.0,214 L123.0,194" fill="none" stroke="#8a8a82" stroke-width="1.6" marker-end="url(#ah-m3g)"/><text x="131.0" y="208.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#8a8a82" text-anchor="start" font-weight="400">PromQL</text><rect x="257" y="8" width="226" height="266" rx="10" fill="none" stroke="#e0d9c8" stroke-dasharray="4 4"/><text x="370.0" y="29.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="middle" font-weight="700">Mac mini · M6</text><text x="370.0" y="45.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#8a8a82" text-anchor="middle" font-weight="400">12 cores · 24 GB · internal SSD</text><rect x="271" y="58" width="198" height="48" rx="8" fill="#fff" stroke="#e0d9c8"/><text x="370.0" y="78.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="13" fill="#1a1a17" text-anchor="middle" font-weight="700">fake-webserver v5</text><text x="370.0" y="96.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="middle" font-weight="400">backfill · 7h at 15s · seed 1</text><path d="M370.0,108 L370.0,134" fill="none" stroke="#8a8a82" stroke-width="1.6" marker-end="url(#ah-m3g)"/><text x="378.0" y="125.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#8a8a82" text-anchor="start" font-weight="400">remote write</text><rect x="271" y="138" width="198" height="52" rx="8" fill="#fff" stroke="#e0d9c8"/><rect x="271" y="138" width="6" height="52" rx="3" fill="#185fa5"/><text x="289.0" y="160.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#1a1a17" text-anchor="start" font-weight="700">GreptimeDB</text><text x="289.0" y="179.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="start" font-weight="400">v1.3.1 · standalone</text><rect x="271" y="216" width="198" height="46" rx="8" fill="#fff" stroke="#e0d9c8"/><text x="370.0" y="235.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="13" fill="#1a1a17" text-anchor="middle" font-weight="700">query runner</text><text x="370.0" y="252.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="middle" font-weight="400">curl + python, after settling</text><path d="M370.0,214 L370.0,194" fill="none" stroke="#8a8a82" stroke-width="1.6" marker-end="url(#ah-m3g)"/><text x="378.0" y="208.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#8a8a82" text-anchor="start" font-weight="400">PromQL</text><rect x="504" y="8" width="226" height="266" rx="10" fill="none" stroke="#e0d9c8" stroke-dasharray="4 4"/><text x="617.0" y="29.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="middle" font-weight="700">Mac mini · M6</text><text x="617.0" y="45.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#8a8a82" text-anchor="middle" font-weight="400">12 cores · 24 GB · internal SSD</text><rect x="518" y="58" width="198" height="48" rx="8" fill="#fff" stroke="#e0d9c8"/><text x="617.0" y="78.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="13" fill="#1a1a17" text-anchor="middle" font-weight="700">fake-webserver v5</text><text x="617.0" y="96.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="middle" font-weight="400">backfill · 7h at 15s · seed 1</text><path d="M617.0,108 L617.0,134" fill="none" stroke="#8a8a82" stroke-width="1.6" marker-end="url(#ah-m3g)"/><text x="625.0" y="125.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#8a8a82" text-anchor="start" font-weight="400">remote write</text><rect x="518" y="138" width="198" height="52" rx="8" fill="#fff" stroke="#e0d9c8"/><rect x="518" y="138" width="6" height="52" rx="3" fill="#0f6e56"/><text x="536.0" y="160.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#1a1a17" text-anchor="start" font-weight="700">OpenObserve</text><text x="536.0" y="179.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="start" font-weight="400">v1.2.0 · Parquet + metrics index</text><rect x="518" y="216" width="198" height="46" rx="8" fill="#fff" stroke="#e0d9c8"/><text x="617.0" y="235.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="13" fill="#1a1a17" text-anchor="middle" font-weight="700">query runner</text><text x="617.0" y="252.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="middle" font-weight="400">curl + python, after settling</text><path d="M617.0,214 L617.0,194" fill="none" stroke="#8a8a82" stroke-width="1.6" marker-end="url(#ah-m3g)"/><text x="625.0" y="208.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#8a8a82" text-anchor="start" font-weight="400">PromQL</text><text x="360.0" y="296.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11.5" fill="#8a8a82" text-anchor="middle" font-weight="400">everything over localhost · same seed and flags on every box · native binaries, no containers, no limits</text></svg><p style="font-size:13px;color:#8a8a82;text-align:center;margin:12px 0 0">Figure 2 · Each Mac mini generates its own copy of the data and queries its own system over localhost.</p></div>

| Setting | Value |
|---|---|
| Hardware | One Mac mini per system: **M6, 12 cores / 24 GB**, internal SSD, macOS 27.0 |
| Limits | None. Each system had the whole box: no container, no cgroup. The load generator shared the box during ingest only; nothing else ran during the query passes |
| Versions | M3DB `v1.6.0` (`m3dbnode` built from the tag, `4fc419f`, with Go 1.27; single node with embedded coordinator and etcd), GreptimeDB `v1.3.1` (release binary, `standalone`), OpenObserve `v1.2.0` (release binary, sqlite metadata) |
| Caches | OpenObserve's result cache off (`ZO_RESULT_CACHE_ENABLED=false`) |
| Limits on queries | Raised wherever a system has them; 600s timeout everywhere. GreptimeDB has no series or sample limits to raise |
| Data | 7 hours at exactly 15s intervals, 2026-09-28 03:00 to 10:00 UTC |
| Windows | 30m, 1h, 3h and 6h, all ending 2026-09-28 10:00 UTC |
| Step | 15s for 30m/1h/3h, 30s for 6h |
| Runs | 5 per cell after one discarded warm-up, the whole matrix twice back to back; tables report the median of both passes |

### How the measurement is taken

- **Queries are issued from the same box, over localhost.** The minis are on Wi-Fi only, and their ping jitters 6–97 ms, more than most OpenObserve cells take. So each box generated its own data and ran its own queries. The query runner (curl + python) is idle between requests.
- **Each system has the whole machine.** Native binaries, no container and no cgroup, so each system could use all 12 cores and 24 GB. During ingest the load generator used 0.5–0.6 cores and 2.0 GB beside OpenObserve and GreptimeDB; nothing else ran during the query passes.
- **All data is in place before query latency is measured.** The backfill finishes, every system finishes its own post-ingest work (flushes, compaction), and only then do queries start. M3DB settled about 15 minutes after the backfill, OpenObserve 19.6 and GreptimeDB 24.4.
- **Resources are sampled throughout.** Server and load generator were sampled every 5 seconds (`ps` RSS and cumulative CPU time); M3DB's ingest every 30 seconds.
- **The slowest cells were run fewer times.** M3DB's second pass recorded one run in its 1h, 3h and 6h unfiltered-histogram cells, because each of those requests costs 3.5 to 12 minutes.

**Compare the systems with each other, not with the previous round.** This is an M6 Mac mini on its internal SSD rather than an EC2 `m7gd.4xlarge` under a 12 CPU / 24 GB container limit, and OpenObserve v1.2.0 rather than v1.1.1. OpenObserve's unfiltered histogram at 6h takes 1.9s here and 3.7s on EKS.

### How the data was generated

The load comes from [`openobserve/fake-webserver`](https://github.com/openobserve/fake-webserver) at the `v5` commit (`0730a5c`), built natively and run in backfill mode with the same flags as the previous round: 14 simulated web-server nodes, 7 hours of samples at exactly 15-second spacing, seed 1. Each box ran its own copy against its own system over localhost. With the same seed and flags, **every system received the same samples**.

The result is **2,218,011,632 samples in 222,369 requests across 1,338,330 series**, with 0 retries and 0 rejected samples on any system. Afterwards OpenObserve and GreptimeDB each held exactly that many, counted with `SUM(records)` over OpenObserve's `file_list` and `count(*)` on GreptimeDB's physical table; M3DB accepted exactly that many, by its `commitlog_writes_success` counter, with no write errors. Series per metric, verified identical on all three with `bench/cardinality.sh`:

| Metric | Series | Used by |
|---|---|---|
| `codelab_api_request_duration_seconds_bucket` | **1,179,360** | the histogram queries |
| `codelab_api_request_duration_seconds_count` | 45,360 | the irate query |
| `codelab_api_request_duration_seconds_sum` | 45,360 | |
| `codelab_api_requests_total` | 45,360 | |
| `codelab_api_request_errors_total` | 22,680 | |
| `codelab_api_http_requests_in_progress` | 210 | |
| **Total** | **1,338,330** | |

## Configuration for each system

The usual way a vendor benchmark goes wrong is tuning your own tool and running the others near defaults. Here is everything each system ran with beyond its defaults, leaving out listen addresses, data paths, credentials and the Prometheus HA label names; the full launch scripts are in the repository. OpenObserve runs with the same settings as the previous round: the result cache off, raised metrics query limits and a shorter file retention. One setting is new, `ZO_INGEST_ALLOWED_UPTO=8760`, so that it accepts the two-month-old samples. Compaction is off during the backfill and on afterwards, as in the published procedure:

```bash
ZO_METRICS_MAX_SERIES_RESPONSE=40000
ZO_METRICS_MAX_POINTS_PER_SERIES=10000000
ZO_RESULT_CACHE_ENABLED=false
ZO_METRICS_BLOCKS_CACHE_MAX_SIZE=2048
ZO_MAX_FILE_RETENTION_TIME=60
ZO_COMPACT_DELETE_FILES_DELAY_MINUTES=10
ZO_COMPACT_ENABLED=false        # during the backfill; true afterwards
ZO_INGEST_ALLOWED_UPTO=8760     # hours: accept the 2-month-old samples
```

M3DB runs as a single node with its coordinator and etcd embedded. Its query limits are raised so the million-series histogram is attempted rather than refused, and both the coordinator's query timeout and the database client's fetch timeout are set to 600s:

```yaml
coordinator:
  limits:
    perQuery:
      maxFetchedSeries: 5000000
      maxFetchedDocs: 20000000
  query:
    timeout: 600s
    prometheus:
      maxSamplesPerQuery: 100000000000
db:
  limits:
    maxRecentlyQueriedSeriesBlocks:
      value: 0
      lookback: 15s
  client:
    fetchTimeout: 600s
    writeTimeout: 60s
```

It has one unaggregated namespace with **cold writes on**, because the samples are two months old, and **16 shards**: 64 shards needed more than the 92,160 open files macOS allows a process.

```json
{"num_shards": 16, "replication_factor": 1}
{"name": "default",
 "options": {"coldWritesEnabled": true,
             "retentionOptions": {"retentionPeriodDuration": "2160h",
                                  "blockSizeDuration": "2h"},
             "indexOptions": {"enabled": true, "blockSizeDuration": "2h"},
             "aggregationOptions": {"aggregations": [{"aggregated": false}]}}}
```

GreptimeDB runs `standalone` with its default metric engine for remote write. It has no series or sample limits to raise, so it needs only a longer HTTP timeout and a larger request body limit:

```toml
[http]
timeout = "600s"
body_limit = "512MB"
```

## Query results: four PromQL queries, four time windows

The query set is the one from the previous round, covering four common dashboard query patterns: irate, an unfiltered histogram, a regex-filtered histogram and an equality-filtered histogram, each over 30-minute, 1-hour, 3-hour and 6-hour windows. **Tables show the median latency in milliseconds**, client-observed wall time, rounded half up. No system restarted during the query passes, and the only errors are M3DB's two timeout cells.

### 1. irate

```promql
sum by (path) (irate(codelab_api_request_duration_seconds_count[1m]))
```

| Window | Step | M3DB | GreptimeDB | OpenObserve |
|---|---|---|---|---|
| 30m | 15s | 1,362 | 75 | **11** |
| 1h | 15s | 1,455 | 495 | **20** |
| 3h | 15s | 2,706 | 1,373 | **45** |
| 6h | 30s | 4,048 | 2,892 | **66** |

Over 45,360 series this is the lightest query in the set. OpenObserve answers every window in **11 to 66 ms**. GreptimeDB's best is 75 ms at 30 minutes and slows as the window grows, to 2,892 ms at 6 hours; M3DB takes 1,362 to 4,048 ms.

### 2. Unfiltered histogram: the million-series stress test

```promql
histogram_quantile(
  0.9,
  sum by(le, path) (
    rate(codelab_api_request_duration_seconds_bucket{}[5m])
  )
)
```

This query has no label filter at all, so it must run `rate` and aggregation over all **1,179,360 series**. It is the hardest query in the test.

| Window | Step | M3DB | GreptimeDB | OpenObserve |
|---|---|---|---|---|
| 30m | 15s | 74,245 | 12,764 | **243** |
| 1h | 15s | 219,446 | 18,029 | **464** |
| 3h | 15s | timeout | 46,980 | **1,307** |
| 6h | 30s | timeout | 94,309 | **1,926** |

<div class="not-prose my-8" style="background:#faf8f3;border:1px solid #e0d9c8;border-radius:8px;padding:20px 16px 14px;overflow-x:auto"><svg viewBox="0 0 720 340" width="100%" style="min-width:560px;display:block;margin:0 auto;max-width:720px" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Unfiltered histogram latency by window, log scale"><line x1="70" y1="225.0" x2="520" y2="225.0" stroke="#e0d9c8" stroke-dasharray="3 4"/><text x="60.0" y="229.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#8a8a82" text-anchor="end" font-weight="400">1s</text><line x1="70" y1="160.0" x2="520" y2="160.0" stroke="#e0d9c8" stroke-dasharray="3 4"/><text x="60.0" y="164.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#8a8a82" text-anchor="end" font-weight="400">10s</text><line x1="70" y1="95.0" x2="520" y2="95.0" stroke="#e0d9c8" stroke-dasharray="3 4"/><text x="60.0" y="99.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#8a8a82" text-anchor="end" font-weight="400">100s</text><line x1="70" y1="44.4" x2="520" y2="44.4" stroke="#c14920" stroke-opacity="0.55" stroke-width="1.4" stroke-dasharray="6 4"/><text x="60.0" y="48.4" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#c14920" text-anchor="end" font-weight="600">600s</text><text x="80.0" y="36.4" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#c14920" text-anchor="start" font-weight="400">query timeout</text><text x="80.0" y="316.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#4a4a45" text-anchor="middle" font-weight="400">30m</text><text x="226.7" y="316.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#4a4a45" text-anchor="middle" font-weight="400">1h</text><text x="373.3" y="316.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#4a4a45" text-anchor="middle" font-weight="400">3h</text><text x="520.0" y="316.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#4a4a45" text-anchor="middle" font-weight="400">6h</text><polyline points="80.0,103.4 226.7,72.8" fill="none" stroke="#c14920" stroke-width="2.5" stroke-linejoin="round"/><circle cx="80.0" cy="103.4" r="4" fill="#fff" stroke="#c14920" stroke-width="2.5"/><circle cx="226.7" cy="72.8" r="4" fill="#fff" stroke="#c14920" stroke-width="2.5"/><path d="M368.3,39.4 L378.3,49.4 M368.3,49.4 L378.3,39.4" stroke="#c14920" stroke-width="2.5" stroke-linecap="round"/><path d="M515.0,39.4 L525.0,49.4 M515.0,49.4 L525.0,39.4" stroke="#c14920" stroke-width="2.5" stroke-linecap="round"/><polyline points="80.0,153.1 226.7,143.4 373.3,116.3 520.0,96.7" fill="none" stroke="#185fa5" stroke-width="2.5" stroke-linejoin="round"/><circle cx="80.0" cy="153.1" r="4" fill="#fff" stroke="#185fa5" stroke-width="2.5"/><circle cx="226.7" cy="143.4" r="4" fill="#fff" stroke="#185fa5" stroke-width="2.5"/><circle cx="373.3" cy="116.3" r="4" fill="#fff" stroke="#185fa5" stroke-width="2.5"/><circle cx="520.0" cy="96.7" r="4" fill="#fff" stroke="#185fa5" stroke-width="2.5"/><polyline points="80.0,264.9 226.7,246.7 373.3,217.4 520.0,206.5" fill="none" stroke="#0f6e56" stroke-width="3.5" stroke-linejoin="round"/><circle cx="80.0" cy="264.9" r="4" fill="#fff" stroke="#0f6e56" stroke-width="2.5"/><circle cx="226.7" cy="246.7" r="4" fill="#fff" stroke="#0f6e56" stroke-width="2.5"/><circle cx="373.3" cy="217.4" r="4" fill="#fff" stroke="#0f6e56" stroke-width="2.5"/><circle cx="520.0" cy="206.5" r="4" fill="#fff" stroke="#0f6e56" stroke-width="2.5"/><text x="534.0" y="48.4" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#c14920" text-anchor="start" font-weight="700">M3DB · timed out</text><text x="534.0" y="100.7" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#185fa5" text-anchor="start" font-weight="700">GreptimeDB · 94s</text><text x="534.0" y="210.5" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#0f6e56" text-anchor="start" font-weight="700">OpenObserve · 1.9s</text></svg><p style="font-size:13px;color:#8a8a82;text-align:center;margin:12px 0 0">Figure 3 · Unfiltered histogram over 1,179,360 series by window. Log scale: each gridline is 10x. M3DB's crosses mark the 3h and 6h windows, where no request answered within the 600s timeout.</p></div>

OpenObserve answers the million-series histogram in **243 ms at 30 minutes and 1.9 seconds at 6 hours**. GreptimeDB completes every window, in 12,764 ms at 30 minutes and 94 seconds at 6 hours. M3DB needs 74,245 ms at 30 minutes and 219,446 ms at 1 hour.

**M3DB did not answer the 3-hour and 6-hour windows at all**, even with its query limits raised and both timeouts at 600 seconds. Every recorded request in those two cells failed:

- **3h:** all returned HTTP 504 *"query timed out in expression evaluation"* at 600s.
- **6h:** three failed the same way. The other three never answered and were cut off by the client's 700-second limit (`CURL_TIMEOUT`).

### 3. Filtered histogram (regex match)

```promql
histogram_quantile(
  0.9,
  sum by(le, path) (
    rate(codelab_api_request_duration_seconds_bucket{path=~"/api/bar"}[5m])
  )
)
```

| Window | Step | M3DB | GreptimeDB | OpenObserve |
|---|---|---|---|---|
| 30m | 15s | 5,203 | 4,184 | **9** |
| 1h | 15s | 4,627 | 4,224 | **16** |
| 3h | 15s | 4,617 | 4,374 | **41** |
| 6h | 30s | 6,774 | 4,350 | **67** |

### 4. Filtered histogram (equality match)

```promql
histogram_quantile(
  0.9,
  sum by(le, path) (
    rate(codelab_api_request_duration_seconds_bucket{path="/api/bar"}[5m])
  )
)
```

| Window | Step | M3DB | GreptimeDB | OpenObserve |
|---|---|---|---|---|
| 30m | 15s | 1,148 | 4,175 | **8** |
| 1h | 15s | 1,781 | 4,205 | **14** |
| 3h | 15s | 2,200 | 4,379 | **36** |
| 6h | 30s | 4,704 | 4,347 | **57** |

These filtered queries are the "filter by endpoint" panels that fill real dashboards. **OpenObserve answers every one of them in 8 to 67 ms.** GreptimeDB takes 4,175 to 4,379 ms on every window, the 30-minute one included. M3DB takes 1,148 to 4,704 ms with an equality match and 4,617 to 6,774 ms with a regex.

<div class="not-prose my-8" style="background:#faf8f3;border:1px solid #e0d9c8;border-radius:8px;padding:20px 16px 14px;overflow-x:auto"><svg viewBox="0 0 704 228" width="100%" style="min-width:560px;display:block;margin:0 auto;max-width:704px" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Six-hour latency for all four queries"><text x="0.0" y="19.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#1a1a17" text-anchor="start" font-weight="700">irate · 6h</text><line x1="0" y1="27" x2="328" y2="27" stroke="#e0d9c8"/><text x="100.0" y="48.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">M3DB</text><rect x="108" y="36" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="108" y="36" width="170.0" height="16" rx="2" fill="#c14920"/><text x="284.0" y="48.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">4,048 ms</text><text x="100.0" y="72.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">GreptimeDB</text><rect x="108" y="60" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="108" y="60" width="121.5" height="16" rx="2" fill="#185fa5"/><text x="284.0" y="72.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">2,892 ms</text><text x="100.0" y="96.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">OpenObserve</text><rect x="108" y="84" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="108" y="84" width="2.8" height="16" rx="2" fill="#0f6e56"/><text x="284.0" y="96.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">66 ms</text><text x="352.0" y="19.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#1a1a17" text-anchor="start" font-weight="700">Unfiltered histogram · 6h</text><line x1="352" y1="27" x2="680" y2="27" stroke="#e0d9c8"/><text x="452.0" y="48.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">M3DB</text><rect x="460" y="36" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><text x="466.0" y="48.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#8a8a82" text-anchor="start" font-weight="400">no answer in 600s</text><text x="636.0" y="48.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#c14920" text-anchor="start" font-weight="700">timed out</text><text x="452.0" y="72.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">GreptimeDB</text><rect x="460" y="60" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="460" y="60" width="170.0" height="16" rx="2" fill="#185fa5"/><text x="636.0" y="72.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">94,309 ms</text><text x="452.0" y="96.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">OpenObserve</text><rect x="460" y="84" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="460" y="84" width="3.5" height="16" rx="2" fill="#0f6e56"/><text x="636.0" y="96.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">1,926 ms</text><text x="0.0" y="135.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#1a1a17" text-anchor="start" font-weight="700">Filtered histogram, regex · 6h</text><line x1="0" y1="143" x2="328" y2="143" stroke="#e0d9c8"/><text x="100.0" y="164.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">M3DB</text><rect x="108" y="152" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="108" y="152" width="170.0" height="16" rx="2" fill="#c14920"/><text x="284.0" y="164.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">6,774 ms</text><text x="100.0" y="188.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">GreptimeDB</text><rect x="108" y="176" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="108" y="176" width="109.2" height="16" rx="2" fill="#185fa5"/><text x="284.0" y="188.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">4,350 ms</text><text x="100.0" y="212.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">OpenObserve</text><rect x="108" y="200" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="108" y="200" width="1.7" height="16" rx="2" fill="#0f6e56"/><text x="284.0" y="212.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">67 ms</text><text x="352.0" y="135.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#1a1a17" text-anchor="start" font-weight="700">Filtered histogram, equality · 6h</text><line x1="352" y1="143" x2="680" y2="143" stroke="#e0d9c8"/><text x="452.0" y="164.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">M3DB</text><rect x="460" y="152" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="460" y="152" width="170.0" height="16" rx="2" fill="#c14920"/><text x="636.0" y="164.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">4,704 ms</text><text x="452.0" y="188.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">GreptimeDB</text><rect x="460" y="176" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="460" y="176" width="157.1" height="16" rx="2" fill="#185fa5"/><text x="636.0" y="188.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">4,347 ms</text><text x="452.0" y="212.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="end" font-weight="400">OpenObserve</text><rect x="460" y="200" width="170" height="16" rx="2" fill="#fff" stroke="#e0d9c8"/><rect x="460" y="200" width="2.1" height="16" rx="2" fill="#0f6e56"/><text x="636.0" y="212.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#1a1a17" text-anchor="start" font-weight="700">57 ms</text></svg><p style="font-size:13px;color:#8a8a82;text-align:center;margin:12px 0 0">Figure 4 · All four query types over the 6-hour window. Bar lengths to real scale within each panel; M3DB's unfiltered histogram timed out, so it has no bar.</p></div>

### Why GreptimeDB's filtered queries take about 4 seconds

GreptimeDB answers the filtered histograms in about 4.2 seconds whatever the window, so shorter windows do not get much cheaper. Its SST manifest and its query profile (`TQL ANALYZE`) show why:

- **File layout:** after compaction, 10 of the data region's 16 SST files each span 4.7 to 6.8 of the 7 hours. A 30-minute window cannot skip them by time.
- **The 30m query:** it selects 12 files holding 1.89 billion rows (5.9 GB). Its scan spends 54 seconds of CPU across 12 workers to return 3.0 million rows.

### How repeatable are these numbers?

Each cell pools two back-to-back passes. OpenObserve's two passes agree to within 6% or 2 ms in every cell, and GreptimeDB's within 4.1%. M3DB varies widely within a cell: its 6h equality median was 2.0 seconds in one pass and 6.7 in the other, and in the second pass its 30m unfiltered runs ranged from 75 to 221 seconds. M3DB's medians are therefore the least precise figures here.

## How does OpenObserve compare across all 16 combinations?

OpenObserve is fastest in every one of the 16 query and window cells. The next-fastest system changes from cell to cell: GreptimeDB in most of them, M3DB in three of the equality-filtered ones. So the figure below compares OpenObserve with whichever of the two was faster in each cell:

<div class="not-prose my-8" style="background:#faf8f3;border:1px solid #e0d9c8;border-radius:8px;padding:20px 16px 14px;overflow-x:auto"><svg viewBox="0 0 640 270" width="100%" style="min-width:560px;display:block;margin:0 auto;max-width:640px" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="OpenObserve speedup over the next-fastest system, 16 cells"><text x="278.0" y="28.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#4a4a45" text-anchor="middle" font-weight="600">30m</text><text x="380.0" y="28.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#4a4a45" text-anchor="middle" font-weight="600">1h</text><text x="482.0" y="28.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#4a4a45" text-anchor="middle" font-weight="600">3h</text><text x="584.0" y="28.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12" fill="#4a4a45" text-anchor="middle" font-weight="600">6h</text><text x="218.0" y="68.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="end" font-weight="600">irate</text><rect x="230" y="40" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.25"/><text x="278.0" y="62.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#1a1a17" text-anchor="middle" font-weight="700">6.8x</text><text x="278.0" y="78.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#1a1a17" text-anchor="middle" font-weight="400">vs GreptimeDB</text><rect x="332" y="40" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.48"/><text x="380.0" y="62.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#1a1a17" text-anchor="middle" font-weight="700">25x</text><text x="380.0" y="78.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#1a1a17" text-anchor="middle" font-weight="400">vs GreptimeDB</text><rect x="434" y="40" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.52"/><text x="482.0" y="62.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#1a1a17" text-anchor="middle" font-weight="700">31x</text><text x="482.0" y="78.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#1a1a17" text-anchor="middle" font-weight="400">vs GreptimeDB</text><rect x="536" y="40" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.58"/><text x="584.0" y="62.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">44x</text><text x="584.0" y="78.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs GreptimeDB</text><text x="218.0" y="120.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="end" font-weight="600">Unfiltered histogram</text><rect x="230" y="92" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.61"/><text x="278.0" y="114.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">53x</text><text x="278.0" y="130.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs GreptimeDB</text><rect x="332" y="92" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.56"/><text x="380.0" y="114.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">39x</text><text x="380.0" y="130.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs GreptimeDB</text><rect x="434" y="92" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.55"/><text x="482.0" y="114.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#1a1a17" text-anchor="middle" font-weight="700">36x</text><text x="482.0" y="130.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#1a1a17" text-anchor="middle" font-weight="400">vs GreptimeDB</text><rect x="536" y="92" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.60"/><text x="584.0" y="114.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">49x</text><text x="584.0" y="130.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs GreptimeDB</text><text x="218.0" y="172.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="end" font-weight="600">Filtered histogram, regex</text><rect x="230" y="144" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="1.00"/><text x="278.0" y="166.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">465x</text><text x="278.0" y="182.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs GreptimeDB</text><rect x="332" y="144" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.90"/><text x="380.0" y="166.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">264x</text><text x="380.0" y="182.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs GreptimeDB</text><rect x="434" y="144" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.74"/><text x="482.0" y="166.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">107x</text><text x="482.0" y="182.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs GreptimeDB</text><rect x="536" y="144" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.65"/><text x="584.0" y="166.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">65x</text><text x="584.0" y="182.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs GreptimeDB</text><text x="218.0" y="224.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="end" font-weight="600">Filtered histogram, equality</text><rect x="230" y="196" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.79"/><text x="278.0" y="218.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">144x</text><text x="278.0" y="234.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs M3DB</text><rect x="332" y="196" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.77"/><text x="380.0" y="218.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">127x</text><text x="380.0" y="234.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs M3DB</text><rect x="434" y="196" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.64"/><text x="482.0" y="218.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">61x</text><text x="482.0" y="234.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs M3DB</text><rect x="536" y="196" width="96" height="46" rx="6" fill="#0f6e56" fill-opacity="0.68"/><text x="584.0" y="218.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="14" fill="#fff" text-anchor="middle" font-weight="700">76x</text><text x="584.0" y="234.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10" fill="#fff" text-anchor="middle" font-weight="400">vs GreptimeDB</text><text x="230.0" y="258.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11.5" fill="#8a8a82" text-anchor="start" font-weight="400">Darker = larger lead. Ratios from the rounded medians in the tables above.</text></svg><p style="font-size:13px;color:#8a8a82;text-align:center;margin:12px 0 0">Figure 5 · How many times faster OpenObserve is than the next-fastest system in each cell, and which system that is.</p></div>

The lead is smallest on irate over short windows, where GreptimeDB is quick too, and largest on the filtered histograms, where OpenObserve answers in milliseconds and both other systems take seconds. Taking the geometric mean gives one number per system. Because M3DB has no result in two cells, the three-way comparison uses the 14 cells every system answered:

<div data-benchmark-chart class="not-prose my-6" data-config='{"title":"Geometric mean latency, 14 combinations every system answered (lower is better)","caption":"Figure 6 · Geomean across 4 queries x 4 windows, leaving out the two cells where M3DB timed out.","bars":[{"label":"M3DB","value":4971,"display":"4,971 ms","color":"#c14920"},{"label":"GreptimeDB","value":2950,"display":"2,950 ms","color":"#185fa5"},{"label":"OpenObserve","value":36,"display":"36 ms","color":"#0f6e56"}],"callout":{"text":"Fastest in all 16 cells","note":"M3DB 137x and GreptimeDB 82x OpenObserve’s latency, 14 cells"}}'></div>

| | M3DB | GreptimeDB | OpenObserve |
|---|---|---|---|
| Geomean, 14 cells (both timeout cells excluded) | 4,971 | 2,950 | **36** |
| Geomean, all 16 cells | n/a (two timeouts) | 4,355 | **58** |
| vs OpenObserve, 14 cells | 137x | 82x | **1.00x** |

Over all 16 cells, OpenObserve's geomean of **58 ms is 1.3% of GreptimeDB's 4,355 ms**. Over the 14 cells M3DB answered, its 36 ms is **0.73% of M3DB's 4,971 ms**.

### Resource use while querying

How long one full query pass of all 16 cells took, and what the server process used meanwhile:

| System | Pass duration | Server CPU | Average cores in use | Peak memory |
|---|---|---|---|---|
| M3DB | 69m (pass 2, single-run wide cells) to 2h 43m (pass 1) | ~4,500 core-s (pass 2) | 1.1 (peak 10.4) | 12.2 GB |
| GreptimeDB | 21m | ~2,550 core-s | 2.0 (peak 2.9) | 6.3 GB |
| OpenObserve | **29s** | **~270 core-s** | ~9.5 (peak 10.7) | 5.5 GB |

OpenObserve spreads a query over most of the 12 cores. GreptimeDB and M3DB use one or two of them on average, so most of the box sits idle while their queries run.

## Same Rust, same DataFusion, very different results

It is easy to assume OpenObserve and GreptimeDB should perform about the same. Both are written in Rust. Both execute queries with Apache Arrow and Apache DataFusion, and both keep their data in Parquet files. With the same building blocks, why would one be much faster?

This benchmark says the assumption is wrong. On identical machines with identical data, OpenObserve's geomean is 1.3% of GreptimeDB's. The million-series histogram over 6 hours takes 1.9s against 94s. The filtered histograms take 8 to 67 ms against about 4.2 seconds.

Think of two people who eat exactly the same food. One of them trains in the gym every day, and ends up with much bigger muscles. Rust, Arrow and DataFusion are the food: every system built on them starts from the same ingredients. The training is everything a system builds on top of them, and the OpenObserve team treats performance as that daily discipline. Three measured differences stand out, each a likely contributor:

- **Data laid out so queries can skip it.** OpenObserve keeps each metric in its own stream, partitioned by hour, so a 30-minute query opens only the files for the hour it falls in. GreptimeDB's 30-minute filtered query selected 12 files holding 1.89 billion rows, because after compaction most of its files spanned 4.7 to 6.8 of the 7 hours.
- **An index built for PromQL.** Beside the data, OpenObserve keeps a dedicated metrics index (0.673 GB here) for finding the series a PromQL selector asks for.
- **The whole machine at work.** During the query passes, OpenObserve averaged about 9.5 of the 12 cores. GreptimeDB averaged 2.0 and M3DB 1.1, so most of their machines sat idle through the passes.

The same ingredients set a floor. How fast a system answers depends on what its team builds on top of them.

## How fast does each system ingest the data?

Ingest is the closer race. Each box received the same 2,218,011,632 samples from its own copy of the load generator, with 0 retries and 0 rejected. Durations and rates are the load generator's own; CPU is the server process's, summed over the backfill window.

| System | Backfill | Rate | Server CPU | per M samples | Peak memory |
|---|---|---|---|---|---|
| M3DB | 4h 32m 04s | 0.136M samples/s | ≈ 115,000 core-s (7.0 cores) | ≈ 52 core-s | 14.4 GB |
| GreptimeDB | 18m 17s | 2.02M samples/s | 7,639 core-s (7.0 cores) | 3.4 core-s | 3.6 GB |
| OpenObserve | **14m 32s** | **2.54M samples/s** | 6,032 core-s (6.9 cores) | **2.7 core-s** | 6.1 GB |

<div data-benchmark-chart class="not-prose my-6" data-config='{"title":"Time to accept 2,218,011,632 samples by remote write (lower is better)","caption":"Figure 7 · Backfill duration, as reported by the load generator.","bars":[{"label":"M3DB","value":16324,"display":"4h 32m 04s","color":"#c14920"},{"label":"GreptimeDB","value":1097,"display":"18m 17s","color":"#185fa5"},{"label":"OpenObserve","value":872,"display":"14m 32s","color":"#0f6e56"}]}'></div>

<div data-benchmark-chart class="not-prose my-6" data-config='{"title":"Server CPU per million samples ingested (lower is better)","caption":"Figure 8 · Core-seconds per million samples during the backfill, before any post-ingest work.","bars":[{"label":"M3DB","value":52,"display":"≈ 52 core-s","color":"#c14920"},{"label":"GreptimeDB","value":3.4,"display":"3.4 core-s","color":"#185fa5"},{"label":"OpenObserve","value":2.7,"display":"2.7 core-s","color":"#0f6e56"}]}'></div>

OpenObserve accepted the backfill fastest, at 2.54 million samples per second and 2.7 core-seconds per million samples. GreptimeDB was close behind at 2.02 million samples per second and 3.4 core-seconds. Both ran at about 7 cores. The rates are what each system sustained on this load, with the load generator sharing the box, not each system's maximum ingest rate.

**M3DB's rate fell during the backfill.** It started at about 400k samples/s and spent most of the run between 70k and 200k (median 135k), while its CPU stayed at about 7 cores throughout. Its CPU figure is its cumulative CPU time just after ingest, minus the small amounts spent settling and in the first minutes of queries; it agrees with integrating its 30-second `ps` readings (114,200 core-s).

### Settling after the backfill

Each system then finished its post-ingest work before the first query. Times are measured from the end of the backfill:

| System | Settled after | Server CPU | Peak memory | What it waited for |
|---|---|---|---|---|
| M3DB | ~15 min | ≈ 110–230 core-s (estimated from %CPU readings) | 17.1 GB | cold-write flush: last busy minute 4 min after the backfill, disk stable from 9 min, then 5 more minutes unchanged |
| OpenObserve | 19.6 min | 2,127 core-s | 7.1 GB | `file_list` full after 2.0 min; compaction switched on, merged 2,153 → 495 files in ~5 min, merged-away inputs deleted after `ZO_COMPACT_DELETE_FILES_DELAY_MINUTES=10` |
| GreptimeDB | 24.4 min | 610 core-s | 5.2 GB | own compaction, a periodic memtable flush 14 min after the backfill, then 10 min idle |

OpenObserve's compaction ran after the backfill, as in the published procedure, while GreptimeDB compacts while data is still arriving. So the fair CPU comparison adds the two tables together:

| System | Total CPU to ingest and settle |
|---|---|
| M3DB | about 115,000 core-s |
| GreptimeDB | 8,249 core-s |
| OpenObserve | **8,159 core-s** |

Counted end to end, **OpenObserve and GreptimeDB spend the same CPU on ingest**, about 8,200 core-seconds each. M3DB spent about 115,000.

## How much disk does each system use?

Disk used once each system had settled, from each system's own accounting:

| System | On disk | Of which |
|---|---|---|
| M3DB | 5.70 GB | filesets 5.4 GB, etcd 0.13 GB, index 17 MB; the other 0.15 GB not broken down |
| GreptimeDB | 8.94 GB | data region 16 SSTs 7.23 GB, index 2.2 MB, manifests 0.3 MB; the other 1.7 GB of the data directory not broken down |
| OpenObserve | **2.29 GB** | data 1.540 GB + `.midx` (metrics index) 0.673 GB, 495 + 495 files; metadata 10 MB; the rest GeoIP data (61 MB) |

<div class="not-prose my-8" style="background:#faf8f3;border:1px solid #e0d9c8;border-radius:8px;padding:20px 16px 14px;overflow-x:auto"><svg viewBox="0 0 720 300" width="100%" style="min-width:560px;display:block;margin:0 auto;max-width:720px" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Disk used per system, at the end of the backfill and settled"><text x="120.0" y="48.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="end" font-weight="600">M3DB</text><rect x="130.0" y="14" width="183.8" height="16" fill="#c14920" fill-opacity="0.18"/><text x="321.8" y="26.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="start" font-weight="400">11.9 GB at end of backfill</text><rect x="130.0" y="36" width="83.4" height="24" fill="#c14920" fill-opacity="1.0"/><rect x="213.4" y="36" width="4.6" height="24" fill="#c14920" fill-opacity="0.45"/><text x="226.0" y="53.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="start" font-weight="700">5.70 GB settled</text><text x="134.0" y="76.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#4a4a45" text-anchor="start" font-weight="400">filesets 5.4 · etcd, index and other</text><text x="120.0" y="140.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="end" font-weight="600">GreptimeDB</text><rect x="130.0" y="106" width="197.7" height="16" fill="#185fa5" fill-opacity="0.18"/><text x="335.7" y="118.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="start" font-weight="400">12.8 GB at end of backfill</text><rect x="130.0" y="128" width="111.7" height="24" fill="#185fa5" fill-opacity="1.0"/><rect x="241.7" y="128" width="26.4" height="24" fill="#185fa5" fill-opacity="0.45"/><text x="276.1" y="145.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="start" font-weight="700">8.94 GB settled</text><text x="134.0" y="168.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#4a4a45" text-anchor="start" font-weight="400">SST files 7.23 · rest of data directory</text><text x="120.0" y="232.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="end" font-weight="600">OpenObserve</text><rect x="130.0" y="198" width="400.0" height="16" fill="#0f6e56" fill-opacity="0.18"/><text x="538.0" y="210.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="11" fill="#4a4a45" text-anchor="start" font-weight="400">25.9 GB at end of backfill</text><rect x="130.0" y="220" width="23.8" height="24" fill="#0f6e56" fill-opacity="1.0"/><rect x="153.8" y="220" width="10.4" height="24" fill="#0f6e56" fill-opacity="0.55"/><rect x="164.2" y="220" width="1.2" height="24" fill="#0f6e56" fill-opacity="0.3"/><text x="173.4" y="237.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="12.5" fill="#1a1a17" text-anchor="start" font-weight="700">2.29 GB settled</text><text x="134.0" y="260.0" font-family="Inter, Helvetica Neue, Arial, sans-serif" font-size="10.5" fill="#4a4a45" text-anchor="start" font-weight="400">data 1.540 · metrics index 0.673</text></svg><p style="font-size:13px;color:#8a8a82;text-align:center;margin:12px 0 0">Figure 9 · Disk at the end of the backfill (light) and after settling (solid). OpenObserve's 25.9 GB is uncompacted one-minute files; compaction was off during the backfill.</p></div>

OpenObserve keeps the 2.22 billion samples in **2.29 GB**, including the 0.673 GB metrics index, against 5.70 GB for M3DB and 8.94 GB for GreptimeDB.

**OpenObserve's 25.9 GB at the end of the backfill is uncompacted.** Compaction was off for the backfill, as in the published procedure, so it held one-minute files. In normal running OpenObserve compacts while data arrives. Peak disk, from the 30-second samples:

- **OpenObserve: 30.4 GB**, during compaction. It held 25.9 GB of one-minute files at the end of the backfill; merging then added the new files before the merged-away inputs were deleted 10 minutes later.
- **GreptimeDB: 16.2 GB**, during its post-backfill flush and compaction. Its peak during the backfill itself was 14.8 GB.
- **M3DB: 14.5 GB**, during the backfill.

OpenObserve's data is general-purpose columnar Parquet. The same files serve [SQL as well as PromQL](https://openobserve.ai/docs/user-guide/data-exploration/metrics/), can be read by any Parquet-aware tool, and map directly onto object storage, where they typically live in production at a much lower per-GB cost than local disk.

## Run the benchmark yourself

We make OpenObserve, so treat these numbers as a vendor benchmark and check them. The [openobserve-metrics-benchmark repository](https://github.com/openobserve/openobserve-metrics-benchmark) has what you need:

- `bench/`: the query runner, the query set and the cardinality check. `SYSTEMS_PROFILE=minis` selects this round's three systems, each queried on localhost
- `RESULTS-m3db-greptimedb.md`: the [full results for this round](https://github.com/openobserve/openobserve-metrics-benchmark/blob/main/RESULTS-m3db-greptimedb.md), including settling, resource use and pass stamps
- [`deploy/minis/`](https://github.com/openobserve/openobserve-metrics-benchmark/tree/main/deploy/minis): each system's settings and launch script, the backfill command and the resource sampler

You need one machine per system, ideally identical, with the release binaries of [OpenObserve](https://openobserve.ai/docs/getting-started/) and GreptimeDB, an `m3dbnode` built from the `v1.6.0` tag, and `fake-webserver` built from its `v5` commit. Load each system with `deploy/minis/backfill.sh`, wait for it to settle, then run this twice back to back on each box, against its own system:

```bash
SYSTEMS_PROFILE=minis SYSTEMS_FILTER=greptimedb \
END_TIME=1790589600 bench/run-benchmark.sh
```

`SYSTEMS_FILTER` is `m3db`, `greptimedb` or `o2-parquet` for OpenObserve. M3DB's slowest cells take minutes per request, so its second pass here added `SINGLE_RUN_CELLS="histogram-unfiltered:1h histogram-unfiltered:3h histogram-unfiltered:6h"`. Budget for M3DB: its backfill alone took 4h 32m, and its first query pass 2h 43m. OpenObserve and GreptimeDB each take the backfill in under 20 minutes. If you get different numbers, open an issue on the repo.

## More than a metrics database

M3DB stores metrics. GreptimeDB stores metrics, logs and traces in one database, with SQL, PromQL and a dashboard. OpenObserve is a complete, open source (AGPL-3.0) observability platform, and the metrics engine benchmarked here is one part of it:

- **Metrics with PromQL and SQL:** [Prometheus remote write](https://openobserve.ai/docs/ingestion/metrics/prometheus/) and OTLP ingest, PromQL for existing dashboards and SQL for ad-hoc analysis on the same data.
- **Logs, traces and profiles** in the same system, with service graph and service catalog built from traces.
- **Frontend monitoring:** RUM, session replay and error tracking, plus synthetic browser and protocol checks.
- **AI:** AI Assistant, SRE Agent for AI root cause analysis, an MCP server, LLM observability and evaluations, anomaly detection, log patterns and insights.
- **Alerting and reliability:** scheduled, real-time, composite and anomaly alerts, incident management, and SLOs with error budgets and burn rate.
- **Dashboards and scheduled reports.**
- **Data processing:** pipelines, VRL functions, enrichment tables and metrics downsampling.
- **Storage and cost:** Parquet on [object storage](https://openobserve.ai/docs/architecture/), Bring Your Own Bucket (BYOB), extended retention, and ingest-based pricing with no per-host or per-user fees.
- **Security and governance:** multi-tenancy, plus SSO, advanced RBAC, sensitive data redaction, audit trail, cipher keys and federated search in the Enterprise edition (free up to 50 GB/day of ingestion).
- **Compliance:** SOC 2 Type II, ISO 27001, and GDPR via the EU region.
- **Open standards:** OpenTelemetry-native ingest, PromQL and SQL.

If you run Prometheus on Kubernetes today, [sending metrics from kube-prometheus-stack to OpenObserve](/blog/send-metrics-using-kube-prometheus-stack-to-openobserve/) walks through pointing your existing setup at it, and our [Prometheus alternatives guide](/blog/prometheus-alternatives/) covers the wider field.

## The bottom line

Put the same 2.2 billion samples and 1.34 million series in front of three systems on identical machines, and the results condense to four points:

- **Fastest everywhere:** OpenObserve answers all 16 combinations fastest, with a geomean at 1.3% of GreptimeDB's latency over 16 cells and 0.73% of M3DB's over the 14 cells M3DB answered.
- **At a million series:** the unfiltered histogram over 6 hours takes OpenObserve 1.9s and GreptimeDB 94s; M3DB did not answer it within 600 seconds.
- **Ingest:** OpenObserve accepts the backfill in 14m 32s, GreptimeDB in 18m 17s and M3DB in 4h 32m; with compaction counted, OpenObserve and GreptimeDB spend the same CPU.
- **Storage:** 2.29 GB including the metrics index, against 5.70 GB for M3DB and 8.94 GB for GreptimeDB, in open Parquet that serves SQL and PromQL alike.

For teams whose metrics have crossed a million active series, OpenObserve keeps PromQL dashboards fast without giving up the query language or the remote-write pipeline you already have. For the same dataset against Prometheus, Mimir and VictoriaMetrics, see the [companion benchmark](/blog/prometheus-mimir-victoriametrics-openobserve-benchmark/); for the logs side, see [OpenObserve vs ClickHouse: one billion log records](/blog/openobserve-vs-clickhouse-one-billion-logs-benchmark/).

## Get started with OpenObserve

- **Try it on your own metrics:** [OpenObserve Cloud](https://cloud.openobserve.ai) gives you PromQL, SQL, dashboards and alerts without running anything yourself.
- **Self-host it:** the same engine is open source; follow the [getting started guide](https://openobserve.ai/docs/getting-started/).
- **Reproduce the numbers:** clone the [benchmark repository](https://github.com/openobserve/openobserve-metrics-benchmark) and run it on your own machines.
- **Read next:** [Prometheus vs Mimir vs VictoriaMetrics vs OpenObserve: Metrics Benchmark](/blog/prometheus-mimir-victoriametrics-openobserve-benchmark/).

## Frequently Asked Questions

### Which is faster for PromQL queries: M3DB, GreptimeDB or OpenObserve?

In this benchmark OpenObserve v1.2.0 was fastest on every query tested. Across 4 PromQL queries and 4 time windows (16 combinations), its geometric mean latency was 58 ms against 4,355 ms for GreptimeDB. M3DB timed out on two of the 16 combinations; on the other 14, the geomeans were 36 ms for OpenObserve, 2,950 ms for GreptimeDB and 4,971 ms for M3DB.

### OpenObserve and GreptimeDB are both built in Rust on Apache Arrow and DataFusion. Why is OpenObserve so much faster?

Shared building blocks do not make shared performance. On identical Mac minis and identical data, OpenObserve's 16-cell geomean was 58 ms against GreptimeDB's 4,355 ms. The difference is in what each system builds on top: OpenObserve keeps each metric in its own stream, partitioned by hour, so a short query opens only that hour's files, and it keeps a dedicated metrics index beside the data. It also spread queries over about 9.5 of the 12 cores on average, against 2.0 for GreptimeDB. GreptimeDB's 30-minute filtered query scanned 12 files holding 1.89 billion rows, because most of its files spanned 4.7 to 6.8 of the 7 hours.

### Why did M3DB time out on the histogram query?

The unfiltered histogram_quantile runs over all 1,179,360 bucket series. With M3DB's query limits raised (maxFetchedSeries 5M, maxFetchedDocs 20M, maxSamplesPerQuery 10^11) and 600-second query and fetch timeouts, every recorded request for the 3-hour and 6-hour windows failed: the 3-hour requests returned HTTP 504 at 600 seconds, and of the 6-hour requests three did the same and three never answered before the client's 700-second limit. The 30-minute and 1-hour windows took 74,245 ms and 219,446 ms.

### How fast is a histogram_quantile query over a million series?

A histogram_quantile over all 1,179,360 bucket series with a 6-hour window took OpenObserve 1.9 seconds and GreptimeDB 94 seconds. M3DB did not answer it within 600 seconds on any request. At 30 minutes the same query took OpenObserve 243 ms, GreptimeDB 12,764 ms and M3DB 74,245 ms.

### How long do M3DB, GreptimeDB and OpenObserve take to ingest 2.2 billion samples?

Each system received the same 2,218,011,632 samples by Prometheus remote write over localhost. OpenObserve accepted them in 14m 32s (2.54M samples/s) at 2.7 core-seconds per million samples, GreptimeDB in 18m 17s (2.02M samples/s) at 3.4, and M3DB in 4h 32m 04s (0.136M samples/s) at about 52. Counting the post-ingest compaction, OpenObserve and GreptimeDB spent about the same CPU in total: 8,159 and 8,249 core-seconds.

### How much disk do M3DB, GreptimeDB and OpenObserve use for the same metrics?

After settling, OpenObserve held the 2.22 billion samples in 2.29 GB, including its 0.673 GB metrics index, against 5.70 GB for M3DB and 8.94 GB for GreptimeDB. OpenObserve's 25.9 GB at the end of the backfill was uncompacted one-minute files, because compaction is off during the backfill by procedure; compaction then reduced it to 2.29 GB.

### Why does GreptimeDB take about 4 seconds on filtered histogram queries?

After compaction, 10 of the 16 SST files in GreptimeDB's data region each spanned 4.7 to 6.8 of the 7 hours, so a 30-minute query could not skip them by time: it selected 12 files holding 1.89 billion rows.

### Was this benchmark fair to M3DB and GreptimeDB?

Each system ran natively on its own identical Mac mini (M6, 12 cores, 24 GB, internal SSD) with the whole box to itself, received the same samples from the same seeded load generator, and was queried over localhost only after it had finished its own background work. Query limits were raised where a system has them and every system had a 600-second timeout. The settings, queries and scripts are in the public openobserve-metrics-benchmark repository and report.
