Analytical Memory

AM/Flux vs analytical databases

AM/Flux is Analytical Memory, not a database. It was built for dimensional analytics: the aggregations, KPIs and drill-downs over business data that people, reports and AI agents ask for all day. Analytical databases search their data for every answer. AM/Flux recalls it. To show what that means on a familiar scale, we ran two public benchmarks on one machine, beside established analytical databases and query engines: ClickHouse OnTime, the home turf of Analytical Memory, and ClickBench, a pure scan workload far outside it.

1ClickHouse OnTime – Enterprise Analytics
up to100× faster
vs. analytical databases
They search. We recall. On the same hardware. Sales, finance, supply chain and IoT: aggregations over dimensional data. What AM/Flux was optimized for.
See OnTime ↓
2ClickBench – Data Science & Engineering
up to3× faster
vs. best-in-class specialists
Data science and engineering: scans with complex, compute-heavy filters over one flat table of web clicks, with no dimensions to use. Well outside the comfort zone of AM/Flux, so here it plays in the same league as existing technologies.
See ClickBench ↓
3Off Topic Benchmarks
16× faster
country facet vs. Elasticsearch · one user
Away games: AM/Flux on the benchmarks of systems it should not even be compared with. First up: Elasticsearch, on Elastic’s own Rally benchmark. Their home turf, not ours.
See Off Topic ↓

1ClickHouse OnTime – Enterprise Analytics

The OnTime flight records mirror typical enterprise use cases with a high share of aggregation: sales, finance, supply chain and IoT. Two SQL query sets and four view workloads, from almost empty selections to broad aggregations, ran on AM/Flux and seven reference systems.

Data model – ClickHouse OnTime

US DOT / BTS flight records

The OnTime flights dataset contains 204,838,008 rows × 36 columns, 16 numeric measures, about 3.3B fact cells (rows × measures).

204,838,008 rows 36 columns 16 measures ~3.3B fact cells

Source: ClickHouse OnTime dataset (US DOT / BTS) ↗

Back to top ↑

Tested databases and engines

seven reference systems
  • Apache DataFusion is a query engine written in Rust that other data systems build on, InfluxDB 3 among them. It works on the Apache Arrow memory format and has been an Apache top-level project since 2024.
  • Apache Pinot is a distributed store for real-time analytics that came out of LinkedIn. It serves user-facing queries at high concurrency and can compute aggregations in advance with its star-tree index, as it did in these runs.
  • Apache Spark is a widely used open-source engine for processing large datasets on clusters. It started at UC Berkeley in 2009, and its creators founded Databricks.
  • CedarDB is a relational database system from Munich that handles transactions and analytics in one system and is compatible with PostgreSQL. It is a spinout of the Technical University of Munich and builds on its Umbra research system.
  • ClickHouse is an open-source column-oriented database for real-time analytics. It started at Yandex in 2009; since 2021 it has been developed by ClickHouse, Inc., which was valued at $15 billion in January 2026.
  • DuckDB is a widely used open-source SQL database for analytics that runs inside the application, without a server. It comes from the CWI research institute in Amsterdam; in August 2026 AWS announced the acquisition of DuckLabs, the company of its creators.
  • StarRocks is a massively parallel SQL database for data warehouses and lakehouses. It started in 2020 as a fork of Apache Doris and has been a Linux Foundation project since 2023.
Software versions and settings
  • AM/Flux 0.8.0 · 1 / 16 / 32 threads on the 16 cores, ratios at 32 threads · release build · Reflex (Auto Caching) off.
  • AM/Flux 0.8.0 · model construction: parallel single-pass loader · 32 workers
  • Apache DataFusion 55.0.0 · 32 target partitions · in-memory table (CREATE TABLE AS) from the Parquet input · in-memory check only.
  • Apache Pinot 1.6.0 · 32 workers (maxExecutionThreads 32) · star-tree pre-aggregation · 36 per-year segments · multi-stage engine for subqueries.
  • Apache Spark 4.3.0 · Java 21.0.12.1 · local[16] and local[32] · 80 GiB driver memory · 32 and 64 shuffle partitions · adaptive query execution enabled · Parquet without CACHE TABLE.
  • CedarDB v2026-11-04 Community Edition · 32 workers in the LXC · all 28 source columns as SMALLINT/TEXT NOT NULL · PostgreSQL wire protocol over TCP loopback.
  • ClickHouse 26.10.4 · 32 workers (max_threads 32) · MergeTree ordered by Year and Month · OPTIMIZE FINAL · query-result cache disabled · in-memory check: Memory engine.
  • DuckDB 2.0.0 · 32 threads · native v2 database file (storage compatibility v2.0.0) · in-memory checks: in-memory database, uncompressed and compressed by CHECKPOINT.
  • StarRocks 4.1.7 · 32 workers (pipeline_dop 32) · single frontend/backend · replication_num=1 · CTAS load from FILES().

Back to top ↑

Test hardware – AMD Ryzen AI Max+ 395

LXC container · 16 physical cores / 32 threads

AM/Flux 0.8.0 and the seven reference systems ran on this machine in the same LXC container under Linux in November 2026: the reference systems with 32 workers, AM/Flux with 1, 16 and 32 threads (AM/Flux 1T, 16T and 32T). Ratios refer to AM/Flux 32T, the same 32 workers.

The machine is a prosumer workstation with 128 GB of memory, about €4,000. Its processor is a modern design with AVX-512 and unified memory. AMD markets it under the line “The ultimate next gen AI PCs” (AMD specifications). In our measurements it outruns most mid-range cloud servers with 16 vCPUs; the Hardware page has the figures.

The charts show total query time for each workload. Loading and preparation are not part of it; their costs appear separately. Lower is better. Measurement notes.

Back to top ↑

SQL – 1. ClickHouse’s own 11 queries

Q0–Q10 · published with the dataset

How AM/Flux runs SQL

AM/Flux was designed for ultra-fast calculations and aggregations over slices of multidimensional data, not for SQL’s tabular model. To support SQL clients, it presents a virtual star schema: familiar tables and joins that do not exist in its underlying storage. Each SQL query is then translated into a sequence of point and range operations over multidimensional space.

Total time of the 11 queries defined by ClickHouse

time · lower is better

What you seeThe eleven queries Q0–Q10 from ClickHouse’s OnTime page ↗, run unchanged except where a system needs its own dialect for the same question. AM/Flux is measured through its SQL interface on the official dimensional model. “Time per query” above the chart shows each query separately.

What it tells youAM/Flux was not built as a SQL engine. Natively it answers only point and range queries; its SQL is an emulation that lets clients believe they talk to a star schema of tables that do not exist. Each statement becomes a sequence of point and range queries and returns exactly the result a SQL system returns. That this detour outruns the best analytical systems available today astonished even the authors of AM/Flux.

Time per query: all 11 queries
QueryAM/Flux 32TStarRocksPinot1ClickHouseDuckDBApache SparkCedarDBApache DataFusionAM/Flux vs best
Q0 Average flights per month 1.35 ms153 ms101 ms59.5 ms55.2 ms408 ms28.9 ms185 ms 21.38×
Q1 Flights per weekday, 2000–2008 476 µs42.4 ms50.8 ms44.9 ms20.5 ms519 ms10.1 ms95.3 ms 21.13×
Q2 Delays over 10 min per weekday, 2000–2008 396 µs37.0 ms53.1 ms59.3 ms13.0 ms522 ms9.37 ms111 ms 23.67×
Q3 Top 10 origins by delays over 10 min, 2000–2008 2.05 ms33.8 ms54.0 ms62.9 ms15.3 ms603 ms11.7 ms122 ms 5.72×
Q4 Delays over 10 min per carrier, 2007 392 µs22.3 ms52.2 ms52.4 ms6.74 ms260 ms4.06 ms114 ms 10.35×
Q5 Share of delays per carrier, 2007 476 µs42.7 ms131 ms30.8 ms6.64 ms272 ms6.66 ms97.6 ms 13.95×
Q6 Share of delays per carrier, 2000–2008 1.36 ms129 ms139 ms62.8 ms24.3 ms678 ms30.9 ms162 ms 17.88×
Q7 Share of delays per year 247 µs297 ms236 ms46.5 ms78.5 ms573 ms40.8 ms229 ms 165×
Q8 Top 10 destinations by distinct origin cities, 2000–2010 1.83 ms189 ms199 ms216 ms79.0 ms1.03 s226 ms274 ms 43.09×
Q9 Flights per year 241 µs84.5 ms83.5 ms21.4 ms48.1 ms325 ms20.9 ms100 ms 86.77×
Q10 Arrival delays over 30 min per carrier, weekdays 9.01 ms233 ms415 ms274 ms78.8 ms1.74 s72.2 ms376 ms 8.02×
  • Apache Spark 6.93 s 388×
  • Apache DataFusion 1.87 s 104×
  • Pinot (pre-computed) 1.52 s 84.84×
  • StarRocks 1.26 s 70.26×
  • ClickHouse 931 ms 52.11×
  • CedarDB 461 ms 25.80×
  • DuckDB 427 ms 23.90×
  • AM/Flux 1T 181 ms 10.12×
  • AM/Flux 16T 18.8 ms 1.05×
  • AM/Flux 32T 17.9 ms 1.00×

A double slash marks a shortened bar; its label shows the full time. Other bars share a linear scale. Small multipliers compare elapsed time with AM/Flux 32T (1.00×).

With a single thread, AM/Flux takes 181 ms: 2.36× faster than the fastest reference system with 32 workers. On a model that keeps all 204,838,008 source rows (forced), AM/Flux 32T takes 53.6 ms. Each bar shows the configuration with the most exact answers, and among those the fastest. Pinot: own SQL text for A11 and Q10 (also measured: common SQL text, 1.03 s for the 10 of 11 queries it answers exactly). ClickHouse: in-memory table (also measured: stored table, 1.15 s). DuckDB: database file (also measured: in-memory, compressed, 527 ms; in-memory, uncompressed, 816 ms). Apache Spark: direct Parquet, 16 workers (also measured: direct Parquet, 32 workers, 7.16 s).

1 Pinot uses pre-computed star-tree aggregations where supported. Every system answers every query of this set exactly. Per-query values are medians over the measured processes of each query's mean time.

Back to top ↑

SQL – 2. Typical enterprise workload

A01–A20 · 20 analytical queries

Total time over all 20 queries

time · lower is better

What you seeTwenty queries of our own on the OnTime data, from whole-table aggregates and rankings to single points, shares and drill-downs. AM/Flux is measured through its SQL interface on its standard model. “Time per query” above the chart shows each query separately.

What it tells youThe 11 original queries ship with the dataset and were picked to show a column store at its best – as it turns out, they suit AM/Flux even better. These 20 queries are closer to enterprise reality: whole-table totals, rankings, single points, shares and drill-downs, the questions that reporting, BI and planning tools ask all day. What you see here is what a medium to large enterprise can expect from each technology on its everyday analytical workload.

Time per query: all 20 queries
QueryAM/Flux 32TStarRocksPinot1ClickHouseDuckDBApache SparkCedarDBApache DataFusionAM/Flux vs best
A01 Average number of flights per month 958 µs218 ms21.4 ms106 ms56.4 ms540 ms28.7 ms196 ms 22.32×
A02 Flights per weekday, 2000-2008, by weekday 301 µs60.6 ms6.15 ms57.6 ms23.4 ms385 ms11.3 ms107 ms 20.43×
A03 Departures delayed 15 minutes or more, per year 165 µs159 ms4.37 ms43.8 ms54.5 ms446 ms25.6 ms111 ms 26.51×
A04 count(*) * sum(DepDel15) / sum(Flights) per year 166 µs221 ms181 ms72.6 ms28.9 ms573 ms30.4 ms134 ms 174×
A05 Sum of positive departure delays per year 142 µs190 ms282 ms64.1 ms76.8 ms495 ms41.4 ms242 ms 292×
A06 Top 10 origin airports by flights 6.20 ms–10.2 ms58.0 ms40.6 ms833 ms67.2 ms138 ms 1.65×
A07 Flights per carrier, descending 2.08 ms207 ms5.40 ms57.4 ms37.3 ms728 ms49.3 ms137 ms 2.59×
A08 Flights per year and month 938 µs225 ms5.53 ms107 ms60.2 ms599 ms31.5 ms184 ms 5.90×
A09 Flights per year and carrier 2.07 ms276 ms5.06 ms223 ms88.3 ms7.25 s63.3 ms209 ms 2.45×
A10 Flights of Delta in March 2019 from ATL to LAX 100 µs10.8 ms5.41 ms28.5 ms4.74 ms337 ms2.28 ms166 ms 22.81×
A11 Flights of NK in 1995 from HPN (none; SQL NULL) 28.0 µs8.65 ms3.48 ms27.6 ms3.64 ms155 ms1.42 ms116 ms 50.71×
A12 Delay rate (15 minutes or more) of United in 2018 285 µs13.0 ms3.66 ms37.6 ms3.50 ms207 ms1.66 ms116 ms 5.82×
A13 Southwest flights per month, 2015-2019 1.65 ms31.6 ms4.25 ms42.8 ms9.96 ms266 ms4.43 ms126 ms 2.57×
A14 Flights per year from JFK 2.22 ms56.5 ms4.36 ms41.7 ms25.1 ms349 ms7.78 ms97.6 ms 1.96×
A15 Flights per month from ORD over all years 3.90 ms71.5 ms4.44 ms51.9 ms31.4 ms401 ms9.15 ms110 ms 1.14×
A16 Flights per carrier, 2019 beside 2018 1.66 ms36.4 ms138 ms44.3 ms9.31 ms523 ms7.14 ms89.3 ms 4.31×
A17 Share of each carrier in all flights of 2019 385 µs351 ms57.8 ms58.3 ms7.07 ms494 ms5.14 ms153 ms 13.35×
A18 Top 10 routes of 2019 4.11 ms30.7 ms9.94 ms48.2 ms9.36 ms508 ms18.1 ms122 ms 2.28×
A19 Flights per origin state in 2019 1.07 ms28.9 ms42.0 ms29.6 ms5.66 ms309 ms4.67 ms92.2 ms 4.38×
A20 Flights per California airport in 2019 288 µs22.2 ms25.2 ms28.0 ms5.59 ms277 ms2.14 ms104 ms 7.42×
  • Apache Spark 15.7 s 548×
  • Apache DataFusion 2.75 s 96.19×
  • StarRocks 2.21 s 77.46×
  • ClickHouse 1.23 s 43.00×
  • Pinot (pre-computed) 818 ms 28.60×
  • DuckDB 582 ms 20.37×
  • CedarDB 414 ms 14.46×
  • AM/Flux 1T 327 ms 11.44×
  • AM/Flux 16T 39.7 ms 1.39×
  • AM/Flux 32T 28.6 ms 1.00×

A double slash marks a shortened bar; its label shows the full time. Other bars share a linear scale. Small multipliers compare elapsed time with AM/Flux 32T (1.00×).

With a single thread, AM/Flux takes 327 ms: 1.26× faster than the fastest reference system with 32 workers. On models forced to keep all 204,838,008 source rows, AM/Flux 32T takes 26.2 ms (full source-row retention) and 66.8 ms (equal-grain control). Each bar shows the configuration with the most exact answers, and among those the fastest. Pinot: own SQL text for A11 and Q10 (also measured: common SQL text, 764 ms for the 19 of 20 queries it answers exactly). ClickHouse: in-memory table (also measured: stored table, 1.33 s). DuckDB: database file (also measured: in-memory, compressed, 594 ms; in-memory, uncompressed, 1.18 s). Apache Spark: direct Parquet, 16 workers (also measured: direct Parquet, 32 workers, 23.2 s).

1 Pinot uses pre-computed star-tree aggregations where supported. StarRocks answers 19 of 20 queries exactly (A06 returns duplicate rows); its total leaves that query out and its row shows a dash. Per-query values are medians over the measured processes of each query's mean time.

Back to top ↑

Views – 1. Almost empty

1,000 highly selective views

How the view workloads run

Analytical Memory keeps facts in a dimensional structure so that each question can select the relevant context. The four view workloads below test this structure with 1,000 views each: almost empty, sparse, mixed and dense, from views that find almost no data to views that aggregate millions of records. Each view is executed anew, without a query-result cache. The reference systems run the SQL translation of each view; every result is checked against an independent reference before timing.

Total time over all 1,000 almost empty views

time · lower is better

What you seeSmall selections that almost never meet a flight: 8 of the 1,000 views contain data, 592 source records in total.

What it tells youAsking for data that does not exist sounds odd, but it is everyday enterprise reporting: which customers have not bought a product, which routes saw no flight. Here AM/Flux is not a faster query engine but a different kind of system. It does not search. It knows where data is and, just as important, where none is – so for an empty answer the data itself is never touched. That is the whole secret behind these response times.

  • Apache Spark 4:00 min 17,243×
  • Apache DataFusion 2:31 min 10,822×
  • StarRocks 12.9 s 928×
  • DuckDB 3.95 s 283×
  • ClickHouse 2.78 s 200×
  • CedarDB 1.95 s 140×
  • Pinot (pre-computed) 680 ms 48.81×
  • AM/Flux 32T 13.9 ms 1.00×
  • AM/Flux 16T 5.86 ms 0.42×
  • AM/Flux 1T 5.12 ms 0.37×

A double slash marks a shortened bar; its label shows the full time. Other bars share a linear scale. Small multipliers compare elapsed time with AM/Flux 32T (1.00×).

With a single thread, AM/Flux takes 5.12 ms: 133× faster than the fastest reference system with 32 workers. On models forced to keep all 204,838,008 source rows, AM/Flux 32T takes 14.3 ms (full source-row retention) and 15.1 ms (equal-grain control). Each bar shows the fastest measured configuration. ClickHouse: stored table (also measured: in-memory table, 26.7 s). DuckDB: database file (also measured: in-memory, compressed, 5.62 s; in-memory, uncompressed, 6.22 s). Apache Spark: direct Parquet, 16 workers (also measured: direct Parquet, 32 workers, 6:05 min).

Back to top ↑

Views – 2. Sparse

1,000 selective views with data

Total time over all 1,000 sparse views

time · lower is better

What you seeSelective views that all contain data: 32,738 source records over the 1,000 views.

What it tells youBarely filled grids: each view touches about 33 source records. Unlike the almost-empty views, AM/Flux now has to read some data, and this is where its point-query speed shows. On a 192-core AWS Graviton5 server it answers 155 million fully qualified point queries per second on average, and up to 489 million where the address is empty.

  • Apache Spark 8:19 min 21,440×
  • Apache DataFusion 2:30 min 6,434×
  • StarRocks 13.6 s 584×
  • ClickHouse 5.05 s 217×
  • DuckDB 4.13 s 177×
  • CedarDB 2.59 s 112×
  • Pinot (pre-computed) 689 ms 29.64×
  • AM/Flux 32T 23.3 ms 1.00×
  • AM/Flux 1T 16.9 ms 0.73×
  • AM/Flux 16T 12.8 ms 0.55×

A double slash marks a shortened bar; its label shows the full time. Other bars share a linear scale. Small multipliers compare elapsed time with AM/Flux 32T (1.00×).

With a single thread, AM/Flux takes 16.9 ms: 40.76× faster than the fastest reference system with 32 workers. On models forced to keep all 204,838,008 source rows, AM/Flux 32T takes 25.3 ms (full source-row retention) and 33.0 ms (equal-grain control). Each bar shows the fastest measured configuration. ClickHouse: stored table (also measured: in-memory table, 25.6 s). DuckDB: database file (also measured: in-memory, compressed, 5.96 s; in-memory, uncompressed, 6.09 s). Apache Spark: direct Parquet, 16 workers (also measured: direct Parquet, 32 workers, 13:02 min).

Back to top ↑

Views – 3. Mixed

1,000 views from narrow to broad

Total time over all 1,000 mixed views

time · lower is better

What you seeA mixture of selective and broad views, 1.2B source records over the 1,000 views.

What it tells youThis is the everyday workload of people and software agents: reporting, BI, data science and, increasingly, agents that query large data volumes for insights and answers. AM/Flux was built for exactly this, because it is what analytical systems will face tomorrow: thousands of agents working through enterprise data around the clock, delivering a continuous stream of insights and automating the most demanding business processes.

  • Apache Spark 12:22 min 2,414×
  • Apache DataFusion 1:57 min 380×
  • ClickHouse 48.1 s 156×
  • StarRocks 42.2 s 137×
  • DuckDB 38.4 s 125×
  • Pinot (pre-computed) 32.0 s 104×
  • CedarDB 25.5 s 82.91×
  • AM/Flux 1T 2.91 s 9.47×
  • AM/Flux 16T 323 ms 1.05×
  • AM/Flux 32T 308 ms 1.00×

A double slash marks a shortened bar; its label shows the full time. Other bars share a linear scale. Small multipliers compare elapsed time with AM/Flux 32T (1.00×).

With a single thread, AM/Flux takes 2.91 s: 8.75× faster than the fastest reference system with 32 workers. On models forced to keep all 204,838,008 source rows, AM/Flux 32T takes 319 ms (full source-row retention) and 620 ms (equal-grain control). Each bar shows the fastest measured configuration. ClickHouse: in-memory table (also measured: stored table, 55.5 s). DuckDB: database file (also measured: in-memory, compressed, 40.1 s; in-memory, uncompressed, 1:29 min). Apache Spark: direct Parquet, 16 workers (also measured: direct Parquet, 32 workers, 14:42 min).

Back to top ↑

Views – 4. Dense

1,000 broad aggregation views

Total time over all 1,000 dense views

time · lower is better

What you seeBroad selections with a filter on just 1 dimension: 137.3B source records over the 1,000 views, which repeat three view shapes. This measures sustained aggregation rather than small, selective lookups. A further AM/Flux bar shows Reflex (Auto Caching) with its cache filled.

What it tells youThe heavyweight class: every number delivered is an aggregation over millions of records. Here AM/Flux is limited almost only by memory bandwidth and by the far faster caches of the processor, which it is designed to keep full. You can see this when its aggregations per second exceed what the machine's memory could physically deliver. Pinot finishes sooner only because it does not aggregate at query time: it reads aggregations computed in advance while loading the data. For very large datasets even bandwidth is too slow for instant answers, so AM/Flux adds Reflex (Auto Caching). It keeps expensive cell values, lazily and fully automatically, drops them when data is entered or imported, and unloads them when they are no longer needed. With Reflex the 1,000 views over 137.3B source records take 29.3 ms cold and 23.3 ms warm. Don't do the math – you end up in trillions per second.

  • Apache Spark 15:00 min 539×
  • Apache DataFusion 4:38 min 166×
  • StarRocks 3:44 min 134×
  • ClickHouse 3:04 min 110×
  • DuckDB 1:55 min 68.98×
  • CedarDB 1:20 min 47.79×
  • AM/Flux 1T 20.3 s 12.16×
  • AM/Flux 16T 1.88 s 1.13×
  • AM/Flux 32T 1.67 s 1.00×
  • Pinot (pre-computed) 1.36 s 0.81×
  • AM/Flux 32T · Reflex 23.3 ms 0.01×

A double slash marks a shortened bar; its label shows the full time. Other bars share a linear scale. Small multipliers compare elapsed time with AM/Flux 32T (1.00×).

With a single thread, AM/Flux takes 20.3 s: 3.93× faster than the fastest reference system without pre-aggregation, CedarDB, with 32 workers. On models forced to keep all 204,838,008 source rows, AM/Flux 32T takes 1.80 s (full source-row retention) and 4.79 s (equal-grain control). Each bar shows the fastest measured configuration. ClickHouse: stored table (also measured: in-memory table, 3:10 min). DuckDB: in-memory, compressed (also measured: database file, 1:55 min; in-memory, uncompressed, 4:25 min). Apache Spark: direct Parquet, 32 workers (also measured: direct Parquet, 16 workers, 16:33 min).

Back to top ↑

Almost-empty throughput
71.7k
views / sec
AM/Flux 32T · 13.9 ms for 1,000 views
Dense throughput
82.2B
source records / sec
AM/Flux 32T · no query-result cache
Typical enterprise workload
28.6 ms
all 20 SQL queries
AM/Flux 32T · SQL interface

Method – measurement notes

configuration · timing · result checks

Every system ran in the same LXC container on the Ryzen in November 2026 from the same input, and every distinct result (3,034 per process) was checked against an independent reference before timing. Each process ran one complete warmup pass and then at least three seconds per workload; the charts show the median of three processes (Apache Spark and Apache DataFusion: one process). Rates count, for every request, the source records that satisfy it, the same basis for every system.

Configurations, in-memory checks and result validation

Each chart shows one configuration per reference system: the one with the most exact answers, and among those the fastest. The other configurations are named beside the chart with their own totals. Apache Spark ran direct Parquet without CACHE TABLE with 16 and 32 workers, one process each; 16 workers were faster in five of six workloads. Pinot's rates are effective, because its star-tree pre-aggregation serves part of the work; for the SQL sets it also ran with its own SQL text for A11 and Q10, which answers all queries exactly.

Apache DataFusion holds its table in memory only and loads the input at every start. To test whether other reference systems gain by holding the whole table in memory, DuckDB (in-memory database, uncompressed and compressed) and ClickHouse (in-memory table) also loaded the input into memory in every process. DuckDB's compressed in-memory database ran Dense in 1:55 min, as fast as its database file (1:55 min); uncompressed it needed 4:25 min. ClickHouse's in-memory table took up to 19% less time in SQL – 1, SQL – 2 and Mixed, and 1.03 to 9.57 times as long in Almost empty, Sparse and Dense. No in-memory configuration changes the order against AM/Flux.

AM/Flux runs every compared request with Reflex (Auto Caching) off, as the reference systems run with their query and result caches off. Only the Dense chart adds AM/Flux with Reflex, marked as such. With Reflex on, repeated requests take 1.83 ms (Almost empty) to 23.3 ms (Dense) at 32 threads.

For SQL, submission, planning, execution and full collection of the result are timed; result checks are outside the timer. A query a system cannot answer exactly is recorded and left out of its total. These results describe the measured configurations.

Back to top ↑

Resources – memory, storage and preparation

recorded resource costs
System Peak RAM Disk Build (one-time) Ready to query
AM/Flux (dimensional only)1 3.53 GB 0.98 GB2 22.1 s3 239 ms
AM/Flux (full dataset)4 4.25 GB5 2.95 GB – 242 ms
Apache DataFusion 58.89 GB 2.01 GB Not required 5.45 s
Apache Spark 21.35 GB 2.01 GB Not required 3.80 s
CedarDB 12.57 GB 1.78 GB 14.2 s 720 ms
ClickHouse 1.31 GB 2.71 GB 1:25 min 380 ms
DuckDB 4.58 GB 4.24 GB 13.0 s 65.2 ms
Pinot 8.80 GB 10.52 GB 8:07 min 41.3 s
StarRocks 20.75 GB 2.61 GB 49.4 s 7.04 s

1 Only the dimensional data that the queries need. This model answers the twenty enterprise queries and the four view workloads; the queries Q0 to Q10 ran on a second dimensional model (ready in 384 ms, peak RAM 5.91 GB).

2 The dimensional model is stored with fast compression (LZ4; Snappy gives the same size). Without compression its content is 2.73 GB. As a compact archive, Brotli brings it to 0.56 GB (quality 9) or 0.48 GB (quality 11); LZ4 loads about three times as fast.

3 The build time of the dimensional model comes from a separate complete-model run of the parallel Rust loader (32 workers, warm source data, including saving).

4 Includes a copy of all 204,838,008 source rows. They stay on disk and are loaded only when a question needs single rows; the twenty enterprise queries need none.

5 Peak RAM after the twenty enterprise queries; the dimensional model peaks at 3.91 GB in the same queries. The first question over every source row takes 596 ms because it loads them all, and peak RAM is then 12.0 GB.

A dash means no separate measurement is available. Build time is a one-time preparation cost; “ready to query” runs from the start of a prepared system until it answers. Peak RAM is the highest resident memory of the process tree during the measured runs (median of three processes; Apache Spark: the lower of its two runs), and disk the stored data after preparation. ClickHouse shows its lowest measured values of the same version. Pinot's build includes creating and uploading its segments with star-tree aggregations. Apache Spark queries the Parquet input directly, so its disk figure is that input and no build is required; its ready-to-query time runs from launching the application until the first query returns. Apache DataFusion loads the Parquet input into memory at every start: its disk figure is that input, its ready-to-query time that load, and its peak RAM the table in memory (one process).

Back to top ↑

2ClickBench – Data Science & Engineering

ClickBench reflects the analytical work of data science and data engineering: complex or compute-heavy filters, text searches and distinct counts over one wide table. It is the opposite of OnTime: a pure scan workload.

What ClickBench measures

web analytics on one flat table

ClickBench is the open benchmark of the ClickHouse team, and the place where the fastest analytical databases meet: 43 SQL queries on one flat table of anonymised web clicks with 105 columns and 99,997,497 rows. Its queries look like the work of data science and data engineering: scans over the whole table, text searches and pattern matches, distinct counts and rankings over millions of groups.

That is about as far from the home turf of AM/Flux as analytics goes. There is no dimensional model to use, and no query gains from one. AM/Flux keeps every row of the table as a plain fact and answers all 43 queries through its SQL. It has the best ClickBench score of the four systems measured, and it answers every query within 420 ms.

ClickBench results are public and reproducible, and any vendor can take part. We follow its queries, data and scoring on our own machine, beside the reference systems.

Back to top ↑

ClickBench – total time and score

Q0–Q42 · full table, 100 million rows · one user, hot

Total time over all 43 queries

time · lower is better

What you seeThe sum of the 43 hot times of each system on the full ClickBench table of 99,997,497 rows. Each query ran three times in a row over one connection; its hot time is the better of runs 2 and 3, as on the ClickBench site. “All 43 queries with every result” below the scores shows each query separately.

What it tells youAM/Flux answers the whole set 1.67× faster than CedarDB, 3.04× faster than ClickHouse and 2.36× faster than DuckDB, on a workload that was never its target. Each reference system needs more than 2.71 s for its slowest query; AM/Flux answers every query within 420 ms.

  • ClickHouse 10.6 s 3.04×
  • DuckDB 8.23 s 2.36×
  • CedarDB 5.83 s 1.67×
  • AM/Flux 32T 3.49 s 1.00×

A double slash marks a shortened bar; its label shows the full time. Other bars share a linear scale. Small multipliers compare elapsed time with AM/Flux 32T (1.00×).

ClickBench score
1.25
best of the four systems
pure score 1.52 · 1.00 = fastest in every query
Rows per second
1.23 billion
one user, all 43 queries
43 × 99,997,497 rows over the sum of the hot times
Slowest query
420 ms
every answer within it
reference systems: 2.71 s and more

The ClickBench score of each system

score · lower is better

What you seeFor every query, each system's hot time is divided by the fastest time of the four systems; the score is the geometric mean over the 43 queries, so 1.00 would mean fastest in every query. The ClickBench score follows ClickBench's own rule and adds 10 ms to every time before dividing; the pure score leaves it out.

What it tells youAM/Flux has the best score of the four with either rule. Scores compare these four systems only.

System ClickBench score Pure score Sum of the 43 Fastest in Rows per second Slowest query
AM/Flux 1.25 1.52 3.49 s 18 of 43 1.23 billion 420 ms
CedarDB 1.27 1.64 5.83 s 22 of 43 738 million 2.75 s
DuckDB 2.01 3.35 8.23 s 0 of 43 522 million 2.71 s
ClickHouse 2.16 3.46 10.6 s 3 of 43 405 million 4.14 s
All 43 queries with every result

Hot time of each system per query, the better of runs 2 and 3 over one connection. The small number beneath is the factor to the fastest of the four systems; the fastest time of each query is highlighted. The rows at the end sum up the 43 queries.

QueryAM/FluxCedarDBClickHouseDuckDB
Q0SELECT COUNT(*) FROM hits 488 µs1.00×3.51 ms7.20×1.03 ms2.10×1.08 ms2.21×
Q1SELECT COUNT(*) FROM hits WHERE AdvEngineID <> 0 10.6 ms10.77×2.16 ms2.19×988 µs1.00×11.8 ms11.93×
Q2SELECT SUM(AdvEngineID), COUNT(*), AVG(ResolutionWidth) FROM hits 500 µs1.00×14.8 ms29.61×14.9 ms29.83×10.8 ms21.55×
Q3SELECT AVG(UserID) FROM hits 219 µs1.00×14.9 ms67.83×28.0 ms127×15.3 ms69.54×
Q4SELECT COUNT(DISTINCT UserID) FROM hits 102 ms2.11×48.1 ms1.00×124 ms2.57×102 ms2.11×
Q5SELECT COUNT(DISTINCT SearchPhrase) FROM hits 50.9 ms1.00×103 ms2.02×185 ms3.63×95.4 ms1.88×
Q6SELECT MIN(EventDate), MAX(EventDate) FROM hits 12.4 ms6.22×2.35 ms1.18×1.99 ms1.00×10.1 ms5.07×
Q7SELECT AdvEngineID, COUNT(*) FROM hits WHERE AdvEngineID <> 0 GROUP BY AdvEngineID ORDER BY COUNT(*) DESC 3.13 ms1.18×2.65 ms1.00×7.56 ms2.85×2.71 ms1.02×
Q8SELECT RegionID, COUNT(DISTINCT UserID) AS u FROM hits GROUP BY RegionID ORDER BY u DESC LIMIT 10 140 ms2.18×63.9 ms1.00×233 ms3.64×126 ms1.97×
Q9SELECT RegionID, SUM(AdvEngineID), COUNT(*) AS c, AVG(ResolutionWidth), COUNT(DISTINCT UserID) FROM hits GROUP BY RegionID ORDER BY c DESC LIMIT 10 163 ms1.78×91.7 ms1.00×253 ms2.76×166 ms1.81×
Q10SELECT MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <> '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10 20.3 ms1.52×13.4 ms1.00×85.9 ms6.42×30.3 ms2.26×
Q11SELECT MobilePhone, MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <> '' GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESC LIMIT 10 22.0 ms1.54×14.3 ms1.00×87.4 ms6.13×32.7 ms2.29×
Q12SELECT SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10 72.6 ms1.00×84.9 ms1.17×151 ms2.09×109 ms1.50×
Q13SELECT SearchPhrase, COUNT(DISTINCT UserID) AS u FROM hits WHERE SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10 212 ms1.41×150 ms1.00×231 ms1.54×228 ms1.52×
Q14SELECT SearchEngineID, SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <> '' GROUP BY SearchEngineID, SearchPhrase ORDER BY c DESC LIMIT 10 77.2 ms1.00×92.7 ms1.20×173 ms2.24×131 ms1.70×
Q15SELECT UserID, COUNT(*) FROM hits GROUP BY UserID ORDER BY COUNT(*) DESC LIMIT 10 118 ms1.99×59.3 ms1.00×97.0 ms1.64×126 ms2.12×
Q16SELECT UserID, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, SearchPhrase ORDER BY COUNT(*) DESC LIMIT 10 195 ms1.25×156 ms1.00×432 ms2.77×295 ms1.90×
Q17SELECT UserID, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, SearchPhrase LIMIT 10 37.8 ms5.31×134 ms18.81×7.13 ms1.00×247 ms34.60×
Q18SELECT UserID, extract(minute FROM EventTime) AS m, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, m, SearchPhrase ORDER BY COUNT(*) DESC LIMIT 10 420 ms1.48×284 ms1.00×693 ms2.44×535 ms1.88×
Q19SELECT UserID FROM hits WHERE UserID = 435090932899640449 9.56 ms12.13×788 µs1.00×1.57 ms1.99×5.04 ms6.40×
Q20SELECT COUNT(*) FROM hits WHERE URL LIKE '%google%' 64.8 ms1.00×133 ms2.06×164 ms2.53×216 ms3.34×
Q21SELECT SearchPhrase, MIN(URL), COUNT(*) AS c FROM hits WHERE URL LIKE '%google%' AND SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10 66.5 ms1.71×38.8 ms1.00×48.2 ms1.24×207 ms5.33×
Q22SELECT SearchPhrase, MIN(URL), MIN(Title), COUNT(*) AS c, COUNT(DISTINCT UserID) FROM hits WHERE Title LIKE '%Google%' AND URL NOT LIKE '%.google.%' AND SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10 53.8 ms1.00×60.9 ms1.13×263 ms4.88×222 ms4.13×
Q23SELECT * FROM hits WHERE URL LIKE '%google%' ORDER BY EventTime LIMIT 10 16.3 ms1.15×14.1 ms1.00×24.2 ms1.72×26.3 ms1.87×
Q24SELECT SearchPhrase FROM hits WHERE SearchPhrase <> '' ORDER BY EventTime LIMIT 10 2.93 ms1.43×2.04 ms1.00×10.6 ms5.17×9.61 ms4.70×
Q25SELECT SearchPhrase FROM hits WHERE SearchPhrase <> '' ORDER BY SearchPhrase LIMIT 10 13.6 ms3.18×4.27 ms1.00×77.6 ms18.17×36.4 ms8.53×
Q26SELECT SearchPhrase FROM hits WHERE SearchPhrase <> '' ORDER BY EventTime, SearchPhrase LIMIT 10 3.76 ms1.69×2.23 ms1.00×9.83 ms4.41×10.5 ms4.73×
Q27SELECT CounterID, AVG(length(URL)) AS l, COUNT(*) AS c FROM hits WHERE URL <> '' GROUP BY CounterID HAVING COUNT(*) > 100000 ORDER BY l DESC LIMIT 25 39.2 ms1.00×137 ms3.49×435 ms11.11×208 ms5.31×
Q28SELECT REGEXP_REPLACE(Referer, '^https?://(?:www\.)?([^/]+)/.*$', '\1') AS k, AVG(length(Referer)) AS l, COUNT(*) AS c, MIN(Referer) FROM hits WHERE Referer <> '' GROUP BY k HAVING COUNT(*) > 100000 ORDER BY l DESC LIMIT 25 419 ms1.00×2.75 s6.56×4.14 s9.89×2.71 s6.46×
Q29SELECT SUM(ResolutionWidth), SUM(ResolutionWidth + 1), SUM(ResolutionWidth + 2), SUM(ResolutionWidth + 3), SUM(ResolutionWidth + 4), SUM(ResolutionWidth + 5), SUM(ResolutionWidth + 6), SUM(ResolutionWidth + 7), SUM(ResolutionWidth + 8), SUM(ResolutionWidth + 9), SUM(ResolutionWidth + 10), SUM(ResolutionWidth + 11), SUM(ResolutionWidth + 12), SUM(ResolutionWidth + 13), SUM(ResolutionWidth + 14), SUM(ResolutionWidth + 15), SUM(ResolutionWidth + 16), SUM(ResolutionWidth + 17), SUM(ResolutionWidth + 18), SUM(ResolutionWidth + 19), SUM(ResolutionWidth + 20), SUM(ResolutionWidth + 21), SUM(ResolutionWidth + 22), SUM(ResolutionWidth + 23), SUM(ResolutionWidth + 24), SUM(ResolutionWidth + 25), SUM(ResolutionWidth + 26), SUM(ResolutionWidth + 27), SUM(ResolutionWidth + 28), SUM(ResolutionWidth + 29), SUM(ResolutionWidth + 30), SUM(ResolutionWidth + 31), SUM(ResolutionWidth + 32), SUM(ResolutionWidth + 33), SUM(ResolutionWidth + 34), SUM(ResolutionWidth + 35), SUM(ResolutionWidth + 36), SUM(ResolutionWidth + 37), SUM(ResolutionWidth + 38), SUM(ResolutionWidth + 39), SUM(ResolutionWidth + 40), SUM(ResolutionWidth + 41), SUM(ResolutionWidth + 42), SUM(ResolutionWidth + 43), SUM(ResolutionWidth + 44), SUM(ResolutionWidth + 45), SUM(ResolutionWidth + 46), SUM(ResolutionWidth + 47), SUM(ResolutionWidth + 48), SUM(ResolutionWidth + 49), SUM(ResolutionWidth + 50), SUM(ResolutionWidth + 51), SUM(ResolutionWidth + 52), SUM(ResolutionWidth + 53), SUM(ResolutionWidth + 54), SUM(ResolutionWidth + 55), SUM(ResolutionWidth + 56), SUM(ResolutionWidth + 57), SUM(ResolutionWidth + 58), SUM(ResolutionWidth + 59), SUM(ResolutionWidth + 60), SUM(ResolutionWidth + 61), SUM(ResolutionWidth + 62), SUM(ResolutionWidth + 63), SUM(ResolutionWidth + 64), SUM(ResolutionWidth + 65), SUM(ResolutionWidth + 66), SUM(ResolutionWidth + 67), SUM(ResolutionWidth + 68), SUM(ResolutionWidth + 69), SUM(ResolutionWidth + 70), SUM(ResolutionWidth + 71), SUM(ResolutionWidth + 72), SUM(ResolutionWidth + 73), SUM(ResolutionWidth + 74), SUM(ResolutionWidth + 75), SUM(ResolutionWidth + 76), SUM(ResolutionWidth + 77), SUM(ResolutionWidth + 78), SUM(ResolutionWidth + 79), SUM(ResolutionWidth + 80), SUM(ResolutionWidth + 81), SUM(ResolutionWidth + 82), SUM(ResolutionWidth + 83), SUM(ResolutionWidth + 84), SUM(ResolutionWidth + 85), SUM(ResolutionWidth + 86), SUM(ResolutionWidth + 87), SUM(ResolutionWidth + 88), SUM(ResolutionWidth + 89) FROM hits 8.65 ms1.00×11.4 ms1.32×18.3 ms2.11×19.3 ms2.24×
Q30SELECT SearchEngineID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits WHERE SearchPhrase <> '' GROUP BY SearchEngineID, ClientIP ORDER BY c DESC LIMIT 10 65.5 ms1.89×34.6 ms1.00×99.6 ms2.88×110 ms3.19×
Q31SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits WHERE SearchPhrase <> '' GROUP BY WatchID, ClientIP ORDER BY c DESC LIMIT 10 78.0 ms1.49×52.2 ms1.00×178 ms3.41×147 ms2.82×
Q32SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits GROUP BY WatchID, ClientIP ORDER BY c DESC LIMIT 10 327 ms1.05×311 ms1.00×820 ms2.64×598 ms1.93×
Q33SELECT URL, COUNT(*) AS c FROM hits GROUP BY URL ORDER BY c DESC LIMIT 10 262 ms1.00×423 ms1.62×664 ms2.54×599 ms2.29×
Q34SELECT 1, URL, COUNT(*) AS c FROM hits GROUP BY 1, URL ORDER BY c DESC LIMIT 10 263 ms1.00×423 ms1.61×667 ms2.54×645 ms2.46×
Q35SELECT ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, COUNT(*) AS c FROM hits GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER BY c DESC LIMIT 10 113 ms1.91×59.0 ms1.00×89.5 ms1.52×114 ms1.93×
Q36SELECT URL, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND DontCountHits = 0 AND IsRefresh = 0 AND URL <> '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10 4.21 ms1.00×6.84 ms1.63×19.1 ms4.54×16.7 ms3.97×
Q37SELECT Title, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND DontCountHits = 0 AND IsRefresh = 0 AND Title <> '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10 2.22 ms1.00×3.37 ms1.52×12.0 ms5.41×5.34 ms2.41×
Q38SELECT URL, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 AND IsLink <> 0 AND IsDownload = 0 GROUP BY URL ORDER BY PageViews DESC LIMIT 10 OFFSET 1000 2.14 ms1.00×2.61 ms1.22×11.8 ms5.51×7.21 ms3.36×
Q39SELECT TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN (SearchEngineID = 0 AND AdvEngineID = 0) THEN Referer ELSE '' END AS Src, URL AS Dst, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 10 OFFSET 1000 12.1 ms1.00×12.7 ms1.05×44.4 ms3.66×33.7 ms2.78×
Q40SELECT URLHash, EventDate, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 AND TraficSourceID IN (-1, 6) AND RefererHash = 3594120000172545465 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 10 OFFSET 100 3.47 ms1.46×2.37 ms1.00×7.72 ms3.25×7.94 ms3.35×
Q41SELECT WindowClientWidth, WindowClientHeight, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 AND DontCountHits = 0 AND URLHash = 2868770270353813622 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10 OFFSET 10000 2.19 ms1.05×2.09 ms1.00×6.84 ms3.27×3.34 ms1.60×
Q42SELECT DATE_TRUNC('minute', EventTime) AS M, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-14' AND EventDate <= '2013-07-15' AND IsRefresh = 0 AND DontCountHits = 0 GROUP BY DATE_TRUNC('minute', EventTime) ORDER BY DATE_TRUNC('minute', EventTime) LIMIT 10 OFFSET 1000 1.81 ms1.00×2.49 ms1.37×5.78 ms3.19×3.79 ms2.09×
Sum of the 43 3.49 s1.00×5.83 s1.67×10.6 s3.04×8.23 s2.36×
ClickBench score (+10 ms) 1.251.272.162.01
Pure score 1.521.643.463.35
Fastest in 18 of 4322 of 433 of 430 of 43

Back to top ↑

Why the 10 ms rule matters

how the score treats fast answers

ClickBench is published and maintained by ClickHouse. Its score adds 10 ms to every answer time before comparing. That makes fast answers count less, for every system: AM/Flux answers Q3 in 219 µs, ClickHouse in 28.0 ms, 127 times as long. With the 10 ms added, the score counts 3.7 times.

The absolute times show the full picture. AM/Flux answers all 43 queries in 3.49 s, ClickHouse in 10.6 s: 3.0 times as long. The ClickBench score shows 1.7 times, the pure score 2.3 times. That is why we publish both scores and the times.

Back to top ↑

ClickBench – measurement notes

data · systems · timing · result checks

The full ClickBench table hits of 99,997,497 rows (the official hits.parquet) was loaded once into every system, the same rows everywhere, checked by row count and column statistics in each system. Each system ran as a server on the same AMD Ryzen AI Max+ 395 (16 cores, 32 threads, 128 GB, Linux), one system at a time with 32 threads and nothing else running; the reference systems with the same 64 GiB memory budget. AM/Flux development build ce109915d over Arrow Flight SQL with Reflex (Auto Caching) off, as ClickBench rules out result caches; CedarDB v2026-11-18 Community over the PostgreSQL protocol; DuckDB 2.0.0 behind its Quack server; ClickHouse 26.10.4 over HTTP. Measured on 22 November 2026.

Times run from the client's send to the fully delivered answer, over each system's own protocol on loopback: end-to-end times, longer than the server-internal times of the official ClickBench table. Every answer was checked against DuckDB's; where a query orders by a value with ties or has no ORDER BY (Q17), any of the equally valid answers counts, and no system answered a query wrongly. Where a system's text of a query asked a different question, it was adjusted to ask the same one and the adjustment is recorded with the evidence.

This is not an entry of the official ClickBench leaderboard: another machine, end-to-end timing and four systems. The scores are relative to these four systems. All servers were warm; there are no cold-run figures.

Back to top ↑

3Off Topic Benchmarks

Away games: AM/Flux on benchmarks that other systems wrote for their own job. Their home turf, not ours. First up: Elasticsearch.

Elasticsearch – GeoNames searches

Elastic Rally · 11,396,503 places · one user

Elasticsearch is the search engine behind countless search boxes and log platforms. Elastic measures it with the GeoNames track of its Rally benchmark: 11,396,503 places of the world, 31 searches. AM/Flux takes on the 16 that read places by their values, from top-ten lists to the country facet, and leaves ranking text, distance scores and scripts to Elasticsearch. Please keep your Elasticsearch: we just wanted to see how AM/Flux holds up as a guest in someone else’s house.

All 16 searches, one user, no cache

searches / sec · higher is better

What you seeSearches per second over all 16 searches, each counted once. Every search is in the table below.

What it tells youAM/Flux is faster in 15 of the 16 searches, up to 32 times; the country facet runs 16 times as fast. Elasticsearch leads in one: the next ten places above GeoNames id 5,000,000.

  • AM/Flux 594 / sec
  • Elasticsearch 90 / sec
All 16 searches with every result

Searches per second for one user, without and with cache. The small number beneath AM/Flux is its factor to Elasticsearch; the faster system of each pair is highlighted. Beneath each search its name in Rally and, where one statement answers it, the SQL of AM/Flux. With the cache on, Elasticsearch answers a repeated search from its request cache; Reflex (Auto Caching) keeps aggregated values and speeds up the country facet.

SearchElasticsearchAM/FluxElasticsearch, with cacheAM/Flux, with Reflex
Ten places, without any conditiondefaultSELECT SourceDocument FROM GeoNames.facts LIMIT 10 2851,8496.49× 8492,3492.77×
Country facet: the ten countries with the most places, their number of places and total populationcountry_agg_uncached 2845716.23× 6095170.85×
The same country facet under Rally’s cached namecountry_agg_cached 2845916.18× 8325180.62×
The ten most populous places with the score log10(2 + 1.2 × population), as a function scorefield_value_function_scoreSELECT SourceDocument, LOG10(2 + 1.2 * Population) AS score FROM GeoNames.facts ORDER BY Population DESC LIMIT 10 4095924.22× 3968352.11×
The same, with the score as a scriptfield_value_script_scoreSELECT SourceDocument, LOG10(2 + 1.2 * Population) AS score FROM GeoNames.facts ORDER BY Population DESC LIMIT 10 3094531.50× 5129691.89×
The ten most populous placesdesc_sort_populationSELECT SourceDocument, Population FROM GeoNames.facts ORDER BY Population DESC LIMIT 10 1571,0076.40× 6361,0951.72×
The ten most populous places in American time zones, with Elasticsearch’s can-match shortcutdesc_sort_population_can_match_shortcutSELECT SourceDocument, Population FROM GeoNames.facts WHERE Timezone LIKE 'America/%' ORDER BY Population DESC LIMIT 10 2419263.84× 7219081.26×
The same, without the can-match shortcutdesc_sort_population_no_can_match_shortcutSELECT SourceDocument, Population FROM GeoNames.facts WHERE Timezone LIKE 'America/%' ORDER BY Population DESC LIMIT 10 3349812.94× 1,0079580.95×
The ten least populous placesasc_sort_populationSELECT SourceDocument, Population FROM GeoNames.facts ORDER BY Population ASC LIMIT 10 3445591.62× 6955280.76×
The next ten places by population after 1,000,000asc_sort_with_after_populationSELECT SourceDocument, Population FROM GeoNames.facts WHERE Population > 1000000 ORDER BY Population ASC LIMIT 10 1935873.03× 7545930.79×
The ten places with the highest GeoNames iddesc_sort_geonameidSELECT SourceDocument FROM GeoNames.facts ORDER BY GeonameId DESC LIMIT 10 2145772.69× 8196110.75×
The next ten places below GeoNames id 5,000,000, descendingdesc_sort_with_after_geonameidSELECT SourceDocument FROM GeoNames.facts WHERE GeonameId < 5000000 ORDER BY GeonameId DESC LIMIT 10 1542311.50× 9042310.26×
The ten places with the lowest GeoNames idasc_sort_geonameidSELECT SourceDocument FROM GeoNames.facts ORDER BY GeonameId ASC LIMIT 10 3307532.28× 6907811.13×
The next ten places above GeoNames id 5,000,000asc_sort_with_after_geonameidSELECT SourceDocument FROM GeoNames.facts WHERE GeonameId > 5000000 ORDER BY GeonameId ASC LIMIT 10 3152210.70× 7152190.31×
The first ten places in American time zones by country code, with the can-match shortcutsort_country_code_can_match_shortcutSELECT SourceDocument FROM GeoNames.facts WHERE Timezone LIKE 'America/%' AND Country <> '(missing)' ORDER BY Country ASC LIMIT 10 2651,4105.32× 9181,3881.51×
The same, without the can-match shortcutsort_country_code_no_can_match_shortcutSELECT SourceDocument FROM GeoNames.facts WHERE Timezone LIKE 'America/%' AND Country <> '(missing)' ORDER BY Country ASC LIMIT 10 3211,3894.33× 1,0771,4251.32×
All 16, each once 905946.63× 7146060.85×
Faster in 1 of 1615 of 16 8 of 168 of 16

Back to top ↑

Elasticsearch – measurement notes

machine · workload · procedure

Both systems ran alone, one after the other, on the same AMD Ryzen AI Max+ 395 with 16 cores and 32 threads; the client ran on the same machine. The client keeps one search in flight and asks again as soon as the checked answer has arrived: three warmup and 15 measured requests per search and cache setting in each of three blocks. Each value is the median of the three blocks. Every answer was checked against the source data and Elasticsearch’s reference answer.

AM/Flux development build 1dbd154cb, its regular standalone server, in three alternating rounds with a freshly started server each. Elasticsearch 9.4.2 as a regular single node with a 16 GiB heap, measured the same day on the same machine with the same client; its values come from that session. AM/Flux keeps every place as a fact with its country, population, GeoNames id, time zone and original document. With the cache on, Elasticsearch uses its request cache, requested per search, and AM/Flux uses Reflex (Auto Caching). The searches are those of the GeoNames track as run by Rally 2.13.0. Measured on 23 November 2026.

Back to top ↑