Krishiv 0.2 runs 22 TPC-H queries 10.4x faster than Spark on a single laptop
10x faster than Spark on a laptop
On one laptop with the same Parquet files, Krishiv 0.2 completed 22 TPC-H-derived queries at SF100 in 228 seconds versus Spark 4.2.0's 2,675 seconds—a 10.4x geometric-mean speedup. At SF1000 (about 1 TB), Krishiv finished all 22 queries within a 20 GB memory limit by spilling to disk, while Spark completed only 6 of the 17 queries it attempted under a 30-minute cap. Krishiv still trails a faster embedded reference engine by 1.18x–1.26x.
It is not the fastest engine on this workload: an embedded reference engine, named on the benchmarks page, is still faster today.
- tormeh
I once showed my coworkers Datafusion. Everyone was used to Databricks and so were of course surprised at how fast it was. Spark has a lot of overhead.
- splix
There was some YouTube video, and interview of a BigQuery (I think) developer, and he said it may need 40x more resources that a similar query on a single machine when it fits that machine. That's an insane number, and he probably meant some ideal scenario. Anyway I remember this quote as an example of what it costs to build a distributed system and when you actually want this.
Here we see just 10x on a single machine, so I guess that the whole deal is to make it distributed eventually. Hope they will have a similar number in distributed mode too, that would be a really great achievement.
- librasteve
Thanks for sharing, those look very impressive, but Spark has some distributed overhead. I wonder how Krishiv compares to Polars which is more of a single machine oriented library?