10x faster than Spark on a laptop krishiv.ai · 14 points · 11 comments · HN thre...

@best

10x faster than Spark on a laptop krishiv.ai · 14 points · 11 comments · HN thread

TL;DR Krishiv 0.2, a Rust engine that runs PySpark and Spark SQL code without a JVM, reports a 10.4x geometric-mean speed-up over Apache Spark 4.2.0 on 22 TPC-H-derived queries at SF100 on one laptop. At SF1000 it finished all 22 queries under a 20 GB memory cap, while Spark completed only 6 of the 17 queries it was run on. The post itself says a reference embedded engine is still 1.18x to 1.26x faster, and the numbers are unaudited and from one machine.

  • At SF100 (about 100 GB), Krishiv 0.2 totaled 228 s for 22 queries versus 2,675 s for Spark 4.2.0, a 10.4x geometric-mean speed-up.
  • Per-query speed-ups at SF100 ranged from 5.0x (Q14, Q19) to 28.0x (Q01).
  • At SF1000 (about 1 TB), Krishiv completed all 22 queries within a 20 GB memory limit by spilling to disk; the slowest, Q18, took 654 s.
  • Spark was run only on Q01 to Q17 at SF1000; 6 finished within a 30-minute cap and 11 did not.
  • The benchmark uses a 2019 i7-9750H laptop with 64 GB RAM and NVMe storage, cold cache, and queries derived from TPC-H rather than audited TPC-H results.
  • Krishiv's results were checked against a reference embedded engine, not the official answer set; Spark's answers were not verified.

Discussion The thread is short and mostly skeptical. Commenters questioned whether a 10x claim is meaningful without visible numbers, debated whether Spark's overhead matters on single-machine workloads at all, and asked how the project compares with Polars, DataFusion and DuckDB. The creator replied in one thread to explain that the goal is running existing PySpark code unchanged, not beating single-node libraries on their own terms. Tone is wry and somewhat dismissive, with one commenter noting the project was posted without its author answering questions.

  • Spark is overkill for data that fits on one machine (some): Commenters argue single-node engines like DuckDB fit small data better, and that Spark's value is distributed joins and transformations over very large datasets. This view frames the benchmark as testing the wrong workload.
  • Spark's overhead makes single-machine speed-ups plausible (some): Some commenters report that DataFusion and similar Rust engines were clearly faster than Databricks/Spark in their own tests, so a large gap on one node is believable. They see JVM and cluster machinery as the main cost.
  • Benchmark claims lack visible numbers and method (some): A few commenters found the headline 10x unconvincing and wanted to see the data and methodology up front. The post in fact contains detailed tables, so this view partly reflects the page's visibility rather than its content.
  • Unclear how it compares with Polars or DuckDB (a few): Commenters asked how the engine stacks up against single-machine libraries such as Polars, and whether it is a ClickHouse-like project. No direct comparison is given in the thread.
  • Drop-in compatibility with existing Spark code is the real point (a few): The project's author argues the value is running current PySpark and Spark SQL code with the same API and results, switching by changing the session constructor rather than rewriting jobs.
  • Practical question about disk space for the 1 TB run (a few): One commenter asked how much free disk space the 1 TB Parquet run needs, including temporary spill files. The post does not answer this directly.

#Spark #Rust #DataFusion #benchmarks #queryEngines #TPCH