Personal project · Benchmark results

zero_ Log Ingestion Benchmark

A personal benchmark of a Node.js, Redis Streams, ClickHouse, and C++ log ingestion pipeline that increased measured API throughput from 6,071 to 17,255 requests per second.

What I wanted to measure

I built zero_ to study two parts of log ingestion separately: how the API accepts and parses requests, and how the consumer drains queued logs and writes them to storage. That let me report API throughput and consumer throughput as separate results.

How the pipeline works

A Node.js API accepts logs over HTTP/1.1, HTTP/2, and gRPC. Redis Streams connects the API to the ingestion consumer, which writes logs to ClickHouse for querying. I instrumented the pipeline with OpenTelemetry and added S3 archival with lifecycle policies.

What changed in the benchmarks

Measured API throughput rose from 6,071 to 17,255 requests per second, about 2.8× the baseline. In the payload and parsing comparison, payload size fell by 54% and parsing throughput increased 9.4×.

In a separate consumer comparison, the C++ rewrite increased throughput 2.7×, reduced peak CPU load by 75%, and cut memory consumption by 80%. These are measurements from the personal project benchmarks. See the repository for the implementation and measurement context.