---
title: "CostBench: Putting real-time analytics to the test"
description: "CostBench measures real-time analytics performance per dollar as one continuous workload: more than 100 billion NBBO stock quotes are streamed at a target of 1 million rows/sec while aggregate and drill-down queries run on a fixed schedule."
url: "https://swe.quest/articles/costbench-putting-real-time-analytics-to-the-test-d29d773d94c62f6a"
canonical: "https://clickhouse.com/blog/costbench-real-time-performance-per-dollar"
source: "ClickHouse"
published: "2026-09-08"
difficulty: "medium"
kind: "Research"
reading_minutes: 19
tags: ["analytics","performance","cost-optimization","stream-processing"]
---

# CostBench: Putting real-time analytics to the test

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-09-08, 19 min read, Research. Original: [https://clickhouse.com/blog/costbench-real-time-performance-per-dollar](https://clickhouse.com/blog/costbench-real-time-performance-per-dollar)

## Summary

CostBench measures real-time analytics performance per dollar as one continuous workload: more than 100 billion NBBO stock quotes are streamed at a target of 1 million rows/sec while aggregate and drill-down queries run on a fixed schedule. Its key idea is the fresh-data path, meaning columnar ingestion, maintenance of pruning-friendly sort/cluster layouts, and incremental pre-aggregation. That path carries its own cost, and when it falls behind it pushes scanning and aggregation work onto the query engine. Using each vendor's recommended push-based ingest path, ClickHouse Cloud had the lowest preparation cost, query-serving cost and runtime. Snowflake, Databricks, BigQuery and Redshift Serverless delivered 412–1,996× worse end-to-end performance per dollar, though the benchmark is run and reported by ClickHouse.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Stream processing](https://swe.quest/tags/stream-processing.md) (Data & databases)

## Prerequisites

- columnar storage
- materialized views / pre-aggregation
- cloud data warehouses ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))

## Keywords

CostBench, ClickHouse Cloud, Snowflake, Databricks, BigQuery, Redshift Serverless, NBBO

## Related posts

- [The end-to-end cost-performance of real-time analytics: Snowflake vs. ClickHouse Cloud](https://swe.quest/articles/the-end-to-end-cost-performance-of-real-time-analytics-snowflake-vs-clickhouse-a79249cfefaab552.md): ClickHouse · 2026-06-23 · Medium · 29 min read · Analytics & OLAP, Performance engineering, Cost optimization, Stream processing
  CostBench measures real-time analytics cost-performance end to end: continuous ingest at a fixed 1 million rows/sec, keeping raw data ordered for pruning, maintaining fresh pre-aggregations, and serving queries continuously while all of that runs.
- [Why ClickHouse Cloud wins at real-time analytics](https://swe.quest/articles/why-clickhouse-cloud-wins-at-real-time-analytics-ff3bf2806ccb7be7.md): ClickHouse · 2026-10-28 · Medium · 21 min read · Analytics & OLAP, Storage engines, Query engines, Performance engineering, Cost optimization
  In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless.
- [Why Databricks can’t match ClickHouse Cloud for real-time analytics](https://swe.quest/articles/why-databricks-can-t-match-clickhouse-cloud-for-real-time-analytics-64110106fa23e085.md): ClickHouse · 2026-10-06 · Medium · 19 min read · Analytics & OLAP, Performance engineering, Cost optimization, Stream processing
  In a vendor-run CostBench test, ClickHouse Cloud and Databricks each ingested a stream of 113.2 billion stock quotes, targeting 1M rows/s, while aggregate and drill-down queries ran on schedule.
- [Why Snowflake can’t match ClickHouse Cloud for real-time analytics](https://swe.quest/articles/why-snowflake-can-t-match-clickhouse-cloud-for-real-time-analytics-a0d24a843f0ecba4.md): ClickHouse · 2026-09-10 · Medium · 18 min read · Analytics & OLAP, Performance engineering, Cost optimization, Stream processing
  In the CostBench continuous-ingestion benchmark (113.2 billion stock quotes streamed toward 1M rows/s while aggregate and drill-down queries ran on the freshest data), ClickHouse Cloud scored 412× better end-to-end performance per dollar than Snowflake.
- [How the 5 major cloud data warehouses compare on cost-performance](https://swe.quest/articles/how-the-5-major-cloud-data-warehouses-compare-on-cost-performance-3f4eec16a6c75f82.md): ClickHouse · 2025-12-02 · Medium · 15 min read · Analytics & OLAP, Cost optimization, Performance engineering, Cloud platforms
  A vendor-run benchmark extends ClickBench's 43 analytical queries to 1B, 10B and 100B rows and prices the raw runtimes for Snowflake, Databricks, ClickHouse Cloud, BigQuery and Redshift Serverless using each vendor's actual compute billing rules via the open CostBench pipeline.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
