Comparing Three Time-Series Databases on Billion-Row IoT Workloads

CrazyTomato2 pts0 comments

Benchmarking Time Series Databases for IoT at Scale: DolphinDB, InfluxDB, and TimescaleDB | by DolphinDB | Jun, 2026 | MediumSitemapOpen in appSign up<br>Sign in

Medium Logo

Get app<br>Write

Search

Sign up<br>Sign in

Benchmarking Time Series Databases for IoT at Scale: DolphinDB, InfluxDB, and TimescaleDB

DolphinDB

6 min read·<br>1 hour ago

Listen

Share

As IoT deployments scale from thousands of devices to millions, the time series database sitting at the core of your data pipeline quietly becomes your biggest liability. Write queues back up. Query latency climbs. What worked at 10,000 devices falls apart at 1,000,000.<br>Press enter or click to view image in full size

To understand where the breaking points actually are, we benchmarked three of the most widely used TSDBs — DolphinDB, InfluxDB, and TimescaleDB — using the TSBS framework, simulating a trucking fleet across five device-scale scenarios ranging from 100 to 10 million devices. We measured write throughput, disk efficiency, and query latency at each level.<br>DolphinDB came out ahead across the board, and the margin widened with scale. At 10 million devices, it ingested data 17× faster than InfluxDB and 2× faster than TimescaleDB. On query performance, the gap was even larger — tasks that DolphinDB resolved in under a second took the other two databases orders of magnitude longer.<br>What follows is a breakdown of how we ran the tests, what we found, and what it means if you’re choosing a TSDB for a large-scale IoT deployment.<br>1. Test Design<br>All tests used the TSBS standard IoT dataset, modelling a logistics company whose trucks continuously report telemetry. Five scale scenarios were evaluated:<br>Press enter or click to view image in full size

The dataset goes beyond simple time-series streams. Each truck reports two types of records:<br>Diagnostics : 1 nanosecond-resolution timestamp, 3 measurements, 8 tag values<br>Readings : 1 nanosecond-resolution timestamp, 7 measurements, 8 tag values<br>Press enter or click to view image in full size

Diagnostics Sample DataPress enter or click to view image in full size

Readings Sample DataThe test also injects out-of-order data and batch ingestion (simulating trucks coming back online after a period of disconnection) — conditions that are common in real deployments but often glossed over in synthetic benchmarks.<br>Queries span both real-time monitoring and historical analysis, including vehicle behaviour prediction from time series data. This makes the evaluation representative of the composite workloads IoT platforms actually face.<br>2. Environment<br>All three databases ran on the same server to ensure a fair comparison.<br>Hardware

Software Versions

All three ran in single-node mode.<br>Key Configuration Parameters<br>Each database was tuned with parameters appropriate to the workload:<br>DolphinDB — TSDB block cache enabled and set to 50 GB via setTSDBBlockCacheSize(50).<br>InfluxDB — Write cache raised to 80 GB to minimise flush-to-disk interruptions; tag value limits removed to accommodate high-cardinality device identifiers; TSI index enabled for high-cardinality performance; full compaction interval set to 30 seconds.<br>TimescaleDB — Chunk duration tuned per scenario to maintain approximately 12 active chunks:

3. Write Performance<br>Throughput<br>DolphinDB delivered the highest ingest rates in every scenario. More importantly, its throughput curve decays far more slowly than InfluxDB and TimescaleDB as device counts climb.<br>At the 10-million-device scale, DolphinDB sustained 409,000 rows/second . InfluxDB dropped to 24,000 rows/second — a 17× gap. TimescaleDB reached 192,000 rows/second , placing it 2× behind DolphinDB.<br>Press enter or click to view image in full size

Disk Usage<br>DolphinDB also led on storage efficiency. Its compression ratios outpaced both alternatives across all five scenarios, a direct consequence of the LSM-Tree storage engine architecture it uses under the hood.<br>Press enter or click to view image in full size

What Drives DolphinDB’s Write Advantage<br>DolphinDB’s high ingest performance in IoT workloads stems from its deeply optimised LSM-Tree engine, which converts what would otherwise be scattered random writes into efficient sequential writes. This approach fully utilises available disk bandwidth and avoids the write amplification that causes B+ tree–based engines to degrade sharply at scale.<br>4. Query Performance<br>Query tests covered 12 categories ranging from last-known-value lookups to multi-truck aggregation and historical trend analysis. We highlight three representative scenarios below.<br>Scenario 2: 4,000 Devices<br>At this scale, DolphinDB returned faster results on nearly every query type. Last-value queries (retrieving the most recent reading for a set of devices) consistently resolved in the low milliseconds, thanks to DolphinDB’s dedicated IoTDB engine.<br>Scenario 2 Results: All Query Types (ms)<br>Press enter or click to view image in full size

A Closer Look: Real-Time vs. Historical Queries

Scenario 3: 100,000...

dolphindb scale time full influxdb timescaledb

Related Articles