alexanderbianchi opened a new issue, #156:
URL: https://github.com/apache/datafusion-iceberg/issues/156

   We should have a benchmark framework in datafusion-iceberg that contributors 
can use to develop an optimization, measure the impact of a PR, and catch 
regressions as DataFusion and Iceberg evolve. One comparison should be 
especially easy: how long does the same DataFusion query take when it reads the 
same Parquet files directly and through an Iceberg table? The goal is 
effectively zero overhead from choosing Iceberg.
   
   We can start with TPCH and Clickbench.
   
   Clickbench's Iceberg leaderboard includes DataFusion alongside DuckDB, 
ClickHouse, and other engines. On c7a.metal-48xl, ClickBench Q1 (SELECT 
COUNT(*) FROM hits) took about 122 seconds cold and 104 seconds on the fastest 
warm run for DataFusion Iceberg. DuckDB’s Iceberg entry on the same machine 
recorded 23 ms cold and 9 ms warm. A contributor should be able to take a 
result like that, reproduce the query locally, compare it with native 
DataFusion Parquet, and measure how much a proposed fix closes the gap. 
[Filtered ClickBench 
leaderboard](https://benchmark.clickhouse.com/#system=-&type=-&machine=-6t%7Cca2%7C6ax%7Ccgle%7C6ale%7C3al&cluster_size=-&opensource=-&hardware=+c&tuned=+n&storage=+ee&category=-nu%7Cj&metric=combined&best=no&queries=-)
 · [DataFusion Iceberg 
run](https://github.com/ClickHouse/ClickBench/blob/main/datafusion-iceberg/results/20261108/c7a.metal-48xl.json)
 · [DuckDB Iceberg 
run](https://github.com/ClickHouse/ClickBench/blob/main/duckdb-iceberg/results/2026
 1110/c7a.metal-48xl.json)
   
   There are good models in the DataFusion ecosystem. apache/datafusion has a 
dedicated benchmarks crate, a bench.sh entry point to prepare data and run a 
suite or an individual query, and a compare.py tool that compares saved JSON 
results query by query. datafusion-distributed makes this part of the PR 
workflow: prepare a dataset once, run on main, switch to the PR branch, and the 
next run compares against the previous one. [Apache DataFusion 
benchmarks](https://github.com/apache/datafusion/blob/main/benchmarks/README.md)
 · [DataFusion Distributed benchmark 
guide](https://datafusion-contrib.github.io/datafusion-distributed/contributor-guide/04-benchmarks.html)
   
   ### What the framework should support
   
   Run suites on Iceberg, starting with TPC-H and ClickBench. Prepare each 
dataset once, then run the full suite or repeat a single query while working on 
it. Adding another suite should reuse the same runner and reporting.
   
   Compare with vanilla Parquet in one command. For either suite, run the same 
SQL through the Iceberg provider and DataFusion’s native Parquet reader over 
the files referenced by the same snapshot. Hold the DataFusion build, settings, 
and hardware fixed, and check that both paths return equivalent results.
   
   Compare revisions as part of normal development. Save per-query timings and 
enough run configuration to reproduce them. Show end-to-end latency, 
distinguish cold and warm runs, and make it easy to see both how a PR changes 
Iceberg performance and how far each query is from Parquet.
   
   For comparable read workloads, the target is for each Iceberg query to match 
native Parquet within measured run-to-run variation or beat it. A repeatable 
slowdown should be easy to find and track through a fix, even when the suite 
average looks healthy.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to