Sail vs Apache Spark

Same machine. Same queries. 10x faster than Apache Spark.

or try Sail on your laptop →

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 and Apache Spark, side by side
SailApache Spark
EngineWritten in Rust, with no JVMSpark on the JVM, in a driver and executors
Python UDFsRun inside the engine process, with no data serializationRun in Python worker processes, with data serialized out of the JVM
ProtocolServes Spark ConnectServes Spark Connect since Spark 3.4
Peak memory26 GB, derived from TPC‑H on one machine72 GB, same queries, same machine
LicenseSail is open source, Apache License 2.0Open 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

  1. Your Spark SQL and DataFrame code
  2. PySpark client
  3. Spark Connect protocol

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.

ClickBench combined score, lower is faster
EngineCombined scoreRun date
Sailx1.01Oct 12, 2026
Spark + Gluten/Veloxx7.40May 11, 2026
Spark + Auronx7.99May 11, 2026
Apache Sparkx9.20May 11, 2026
Spark + Cometx9.76May 11, 2026
ClickBench combined metric, from the public ClickBench view(opens in a new tab). Sail’s result is dated Oct 12, 2026, the others May 11, 2026. Sail JSON (opens in a new tab) Spark JSON (opens in a new tab)

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.

Times faster than Apache Spark, by query
QuerySparkSailSpeedup
q152.25 s3.50 s15x
q211.92 s0.66 s18x
q320.65 s1.90 s11x
q419.05 s0.91 s21x
q537.91 s2.80 s14x
q62.93 s1.01 s2.9x
q719.29 s2.35 s8.2x
q831.80 s3.10 s10x
q955.98 s4.31 s13x
q1014.71 s2.21 s6.6x
q1110.01 s0.49 s20x
q129.58 s1.78 s5.4x
q1317.51 s2.40 s7.3x
q145.64 s1.27 s4.4x
q1513.68 s2.35 s5.8x
q1613.47 s0.46 s29x
q1770.43 s5.24 s13x
q1850.76 s6.53 s7.8x
q195.97 s2.16 s2.8x
q2010.14 s2.02 s5.0x
q2152.37 s4.89 s11x
q228.76 s0.47 s19x
Times faster than Apache Spark, same machine, by query 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.

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.

  1. Install

    pip install pysail
    pip install pyspark-client==4.2.0
  2. Start the server

    sail spark server
  3. 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 LakeSail

Migration

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.

  1. Point us at one recurring job
  2. We prove it on Sail, free
  3. 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.