Sail vs Apache Spark
Same machine. Same queries. 10x faster than Apache Spark.
Derived from TPC-H · 22 queries · same machine
- Apache Spark, all 22 queries 534.78 s
- Apache Spark, its slowest query (q17) 70.43 s
- Sail, all 22 queries 52.81 s
Sail’s whole 22-query run took less time than Spark’s slowest single query.
Total query time. Derived from TPC-H at scale factor 100, not an official TPC result. Sail 0.7.0 and Apache Spark 4.2.0 on one r8g.4xlarge. Published results (opens in a new tab)
Side by side
How we stack up.
| Sail | Apache Spark | |
|---|---|---|
| Engine | Written in Rust, with no JVM | Spark on the JVM, in a driver and executors |
| Python UDFs | Run inside the engine process, with no data serialization | Run in Python worker processes, with data serialized out of the JVM |
| Protocol | Serves Spark Connect | Serves Spark Connect since Spark 3.4 |
| Peak memory | 26 GB, derived from TPC‑H on one machine | 72 GB, same queries, same machine |
| License | Sail is open source, Apache License 2.0 | Open source, Apache License 2.0 |
What changes
What you drop. What you keep.
Sail serves the Spark Connect protocol, so your PySpark session connects to it by address. Your Spark SQL and DataFrame code stays as it is, and the JVM engine underneath is replaced.
You keep
Apache Spark
.remote("sc://spark-host:15002") You drop
- JVM driver and executors Heap sizes and garbage collection
- Python worker processes UDF data moves between processes
Sail
.remote("sc://localhost:50051") Runs instead
- Sail engine, in Rust No JVM, no garbage collector
- Python in the engine process No serialization between processes
Spark accelerators
An accelerator speeds up operators. Sail replaces the whole engine.
Accelerators plug native operators into Spark, and they can help. But the JVM stays, and so do its limits.
Spark + accelerator
The JVM still plans and runs the job
Spark’s optimizer plans each query, and its JVM driver and scheduler run the job. Native code takes over the operators the accelerator supports.
SailSail plans and runs each query in Rust.
Spark + accelerator
Garbage collection still runs
The native code runs inside Spark’s JVM executors, so the JVM and its garbage collector stay.
SailNo garbage collector.
Spark + accelerator
Heap and off-heap memory, tuned apart
Native operators need memory outside the JVM heap, sized on its own. Comet and Gluten take an off‑heap pool, and Auron takes executor memory overhead.
SailNo JVM heap to size.
Spark + accelerator
Unsupported steps fall back
Any step the accelerator cannot run goes back to Spark, with data converted from columnar batches to rows and back.
SailOne native engine from plan to shuffle, with no handoffs.
ClickBench
On ClickBench, faster than three Spark accelerators too.
Each engine ran the same 43 queries on one c6a.4xlarge. The closest, Spark with Gluten/Velox, was 7.4x slower than Sail on ClickBench’s combined metric.
| Engine | Combined score | Run date |
|---|---|---|
| Sail | x1.01 | Oct 12, 2026 |
| Spark + Gluten/Velox | x7.40 | May 11, 2026 |
| Spark + Auron | x7.99 | May 11, 2026 |
| Apache Spark | x9.20 | May 11, 2026 |
| Spark + Comet | x9.76 | May 11, 2026 |
Query by query
Every query ran faster on Sail.
Each bar is one of the 22 queries, at Spark’s time divided by Sail’s. Worst case 2.8x, up to 29x, and 12 of 22 at 10x or better.
Your code
Will Sail run your Spark code?
The Spark-to-Sail scanner lists the Spark features your code uses, where each one appears, and whether Sail supports it today.
Runs in your browser or as a CLI.
spark-to-sail scan ./jobs A scan reads your code and does not run it.
A scan’s readiness verdicts
- Ready
- Ready, with notes
- Mostly ready
- Almost ready
Run it now
Try Sail on your laptop.
Sail is open source under the Apache License 2.0. Install it with pip, start the server, and point a PySpark session at it.
-
Install
pip install pysail pip install pyspark-client==4.2.0 -
Start the server
sail spark server -
Connect, from a second terminal
from pyspark.sql import SparkSession spark = (SparkSession.builder .remote("sc://localhost:50051") .getOrCreate()) spark.sql("SELECT 1 + 1").show()
In production
LakeSail is a data and AI platform powered by Sail. It adds scheduled jobs, notebooks, catalogs and access control, in your own environment.
Explore LakeSailMigration
We migrate your Spark workloads.
We prove one recurring Spark job first, with no service fee.
Correct. Faster. Cheaper. All three, or you owe us nothing.
- Point us at one recurring job
- We prove it on Sail, free
- We move it to production with you
Questions
Questions about Sail and Apache Spark.
Is Sail an alternative to Apache Spark?
Sail is an open-source alternative to Apache Spark and a drop-in replacement for Spark SQL and DataFrame code, written in Rust with no JVM. It serves the Spark Connect protocol, so a PySpark session connects to it by address. On the same machine, Sail ran a benchmark derived from TPC-H 10x faster than Spark.
Is Sail a fork of Apache Spark?
Sail is not a fork of Apache Spark. It is a separate engine written in Rust and built on Apache Arrow and Apache DataFusion, with none of Spark’s JVM engine code. Sail implements the Spark Connect protocol, so a PySpark session sends it the same Spark SQL and DataFrame calls it sends to Spark. How Sail builds on DataFusion →
How is Sail different from Spark accelerators such as Photon, Comet or Gluten?
Spark accelerators run inside Spark, while Sail is a separate engine. Photon, Comet and Gluten keep Spark’s optimizer and JVM runtime, run the operators they support in native code, and fall back to Spark for the rest. Sail plans and runs each query in Rust, with no JVM, and runs Python UDFs inside the engine process. How Sail compares to Spark accelerators →
Is Sail open source?
Sail is open source under the Apache License 2.0, and its code is on GitHub. It installs with pip and runs on a laptop as a single process, or as a cluster of workers for distributed work. Your PySpark client connects to either one the same way, over Spark Connect.
Run your Spark SQL and DataFrames on Sail.
Start with pip on your laptop, or try LakeSail in your own environment. The 14‑day free trial has no LakeSail fees.