Head to head

Gluten vs Comet: which lowers Spark compute cost?

No overall score: Apache Gluten is outside our lead question (Not documented for Amazon EMR on the pages reviewed); Apache DataFusion Comet is outside our lead question (Documented for EMR only with a caveat: The install guide says Comet "may not fully work with proprietary forks of Apache Spark such as the Spark versions offered by Cloud Service Providers", which applies to EMR's Spark runtime. AWS engineers published a run on Amazon EKS). Comet scores higher on Adoption effort and Hardware independence. They tie on Cost mechanism and evidence, Fit on platforms you already run, Pricing and trial transparency, Openness and Maturity and support. Neither documents Amazon EMR without qualification: Gluten does not document it on the pages reviewed and Comet documents it with a caveat.

By The Meter DeskSpark Cost Compare

Desk research from public vendor and project pages. Editorial assessment; we did not run the products.

How do the scores compare?

Gluten and Comet: scores by criterion (0 to 10)
CriterionGlutenCometHigher
Cost mechanism and evidence 30%66Tie
Adoption effort 20%56Comet
Fit on platforms you already run 10%55Tie
Hardware independence 5%79Comet
Pricing and trial transparency 10%99Tie
Openness 10%1010Tie
Maturity and support 15%77Tie

Which cost levers does each document?

Documented by the vendorNot documented on the pages reviewed

Gluten

1 of 4 levers: fewer instance hours

Comet

1 of 4 levers: fewer instance hours

Where does each run?

Gluten

Amazon EMR: Not documentedEMR on EKS: Not documentedDatabricks: Not documentedSelf-managed Spark: Documented

Binaries are published for Spark 3.3, 3.4, 3.5, 4.0 and 4.1. Managed platforms are not documented on the pages reviewed.

Comet

Amazon EMR: DocumentedEMR on EKS: DocumentedDatabricks: Not documentedSelf-managed Spark: Documented

The install guide says Comet "may not fully work with proprietary forks of Apache Spark such as the Spark versions offered by Cloud Service Providers", which applies to EMR's Spark runtime. AWS engineers published a run on Amazon EKS.

What does each cost to adopt?

Gluten

Pricing

Free. Apache 2.0, no license fee.

Source: Apache Gluten homepage

Trial
Free download.
Hardware
Runs on CPUs. Binaries are compiled on CentOS 7 and Intel Xeon Platinum 8272CL; the project says performance and compatibility are not guaranteed on other operating systems or hardware.
Adoption
No query changes, but setup needs spark.plugins=org.apache.gluten.GlutenPlugin, off-heap memory and the ColumnarShuffleManager. Spill support is marked experimental.
License
Apache 2.0

Comet

Pricing

Free. Apache 2.0, no license fee.

Source: Apache DataFusion Comet

Trial
Free download.
Hardware
Runs on standard CPU instances.
Adoption
No code changes. Requires JDK 17 or later; JDK 11 is no longer supported as of 1.1.0.
License
Apache 2.0

What figures does each publish?

Gluten

Vendor states

"TPC-H: Overall 3.34x speedup with Gluten + Velox"

Source: Apache Gluten homepage

Vendor figure. Not measured by Spark Cost Compare.

Vendor states

"TPC-DS: Overall 3.02x speedup"

Source: Apache Gluten homepage

Vendor figure. Not measured by Spark Cost Compare.

Vendor states

"Up to 23.45x speedup on individual queries"

Source: Apache Gluten homepage

Vendor figure. Not measured by Spark Cost Compare.

Comet

Vendor states

"3 TB TPC-DS on Amazon EKS: 11% slower at first, 32% faster after fixes, 37% faster on Iceberg (as the authors state)."

Source: DataFusion blog: Comet on Amazon EKS

Vendor figure. Not measured by Spark Cost Compare.

Which should you choose?

Choose Gluten if

you value an open-source license and seeing the price before a sales call. Best fit: Teams running self-managed Spark who can tune off-heap memory and want an Apache-governed engine.

Choose Comet if

you value an open-source license and seeing the price before a sales call. Best fit: Teams on self-managed Spark, including on Kubernetes, who want an open engine with a public, candid performance record.

Common questions

Which scores higher overall, Apache Gluten or Apache DataFusion Comet?

No overall score: Apache Gluten is outside our lead question (Not documented for Amazon EMR on the pages reviewed); Apache DataFusion Comet is outside our lead question (Documented for EMR only with a caveat: The install guide says Comet "may not fully work with proprietary forks of Apache Spark such as the Spark versions offered by Cloud Service Providers", which applies to EMR's Spark runtime. AWS engineers published a run on Amazon EKS). The bill estimator lets you re-weight the scores for your platform.

Do Apache Gluten and Apache DataFusion Comet run on Amazon EMR?

Apache Gluten: Not documented on the pages reviewed. Binaries are published for Spark 3.3, 3.4, 3.5, 4.0 and 4.1. Managed platforms are not documented on the pages reviewed. Apache DataFusion Comet: With a caveat. The install guide says Comet "may not fully work with proprietary forks of Apache Spark such as the Spark versions offered by Cloud Service Providers", which applies to EMR's Spark runtime. AWS engineers published a run on Amazon EKS.

Which is cheaper to adopt?

Apache Gluten: Free. Apache 2.0, no license fee. Apache DataFusion Comet: Free. Apache 2.0, no license fee. Neither figure includes the instance hours your jobs use.

Read next