Apache Spark This is a benchmark of Apache Spark with its PySpark interface. Apache Spark is an open-source unified analytics engine for large-scale data processing and dealing with big data. This test profile benchmars the Apache Spark in a single-system configuration using spark-submit. The test makes use of DIYBigData's pyspark-benchmark (https://github.com/DIYBigData/pyspark-benchmark/) for generating of test data and various Apache Spark operations.
To run this test with the Phoronix Test Suite , the basic command is: phoronix-test-suite benchmark spark .
Test Created 4 August 2022
Last Updated 20 January 2023
Test Type System
Average Install Time 4 Seconds
Average Run Time 47 Minutes, 28 Seconds
Test Dependencies Java + Python
Accolades 30k+ Downloads Public Result Uploads * Reported Installs ** Reported Test Completions ** Test Profile Page Views OpenBenchmarking.org Events Apache Spark Popularity Statistics pts/spark 2022.08 2022.09 2022.10 2022.11 2022.12 2023.01 2023.02 2023.03 2023.04 2023.05 2023.06 2023.07 2023.08 2023.09 2023.10 2023.11 2023.12 2024.01 2024.02 2024.03 2024.04 2024.05 5K 10K 15K 20K 25K
* Uploading of benchmark result data to OpenBenchmarking.org is always optional (opt-in) via the Phoronix Test Suite for users wishing to share their results publicly. ** Data based on those opting to upload their test results to OpenBenchmarking.org and users enabling the opt-in anonymous statistics reporting while running benchmarks from an Internet-connected platform. Data updated weekly as of 14 May 2024.
20000000 21.5% 10000000 22.4% 1000000 33.7% 40000000 22.4% Row Count Option Popularity OpenBenchmarking.org
100 31.1% 2000 24.8% 500 22.6% 1000 21.5% Partitions Option Popularity OpenBenchmarking.org
Performance MetricsAnalyze Test Configuration: pts/spark-1.0.x - Row Count: 1000000 - Partitions: 100 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 1000000 - Partitions: 100 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 100 - Inner Join Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 100 - Repartition Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 100 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 1000000 - Partitions: 100 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 100 - Group By Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 2000 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 2000 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 1000000 - Partitions: 2000 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 1000000 - Partitions: 2000 - Group By Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 2000 - Repartition Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 2000 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 2000 - Inner Join Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 500 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 1000000 - Partitions: 500 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 1000000 - Partitions: 500 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 100 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 100 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 40000000 - Partitions: 100 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 40000000 - Partitions: 2000 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 40000000 - Partitions: 2000 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 500 - Repartition Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 2000 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 1000000 - Partitions: 500 - Inner Join Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 500 - Group By Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 500 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 500 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 40000000 - Partitions: 100 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 100 - Group By Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 100 - Repartition Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 100 - Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 100 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 10000000 - Partitions: 100 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 500 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 100 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 20000000 - Partitions: 1000 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 1000000 - Partitions: 1000 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 100 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 1000000 - Partitions: 1000 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 10000000 - Partitions: 100 - Group By Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 2000 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 10000000 - Partitions: 100 - Inner Join Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 1000 - Inner Join Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 1000 - Group By Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 1000 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 10000000 - Partitions: 100 - Repartition Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 100 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 1000 - Repartition Test Time pts/spark-1.0.x - Row Count: 1000000 - Partitions: 1000 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 2000 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 500 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 10000000 - Partitions: 2000 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 10000000 - Partitions: 2000 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 40000000 - Partitions: 500 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 40000000 - Partitions: 2000 - Repartition Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 2000 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 2000 - Group By Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 2000 - Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 1000 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 500 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 500 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 20000000 - Partitions: 100 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 500 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 500 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 20000000 - Partitions: 2000 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 100 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 20000000 - Partitions: 1000 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 20000000 - Partitions: 500 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 20000000 - Partitions: 2000 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 10000000 - Partitions: 1000 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 1000 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 20000000 - Partitions: 100 - Group By Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 1000 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 10000000 - Partitions: 2000 - Inner Join Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 2000 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 2000 - Repartition Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 2000 - Group By Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 100 - Repartition Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 100 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 100 - Inner Join Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 500 - Inner Join Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 500 - Repartition Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 500 - Group By Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 500 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 1000 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 1000 - Inner Join Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 1000 - Repartition Test Time pts/spark-1.0.x - Row Count: 10000000 - Partitions: 1000 - Group By Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 1000 - Calculate Pi Benchmark Using Dataframe pts/spark-1.0.x - Row Count: 40000000 - Partitions: 1000 - Calculate Pi Benchmark pts/spark-1.0.x - Row Count: 40000000 - Partitions: 1000 - SHA-512 Benchmark Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 500 - Repartition Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 500 - Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 1000 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 1000 - Group By Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 1000 - Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 1000 - Repartition Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 500 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 500 - Group By Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 2000 - Group By Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 2000 - Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 2000 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 20000000 - Partitions: 2000 - Repartition Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 500 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 500 - Group By Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 500 - Inner Join Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 500 - Repartition Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 1000 - Broadcast Inner Join Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 1000 - Repartition Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 1000 - Group By Test Time pts/spark-1.0.x - Row Count: 40000000 - Partitions: 1000 - Inner Join Test Time Apache Spark 3.3 Row Count: 1000000 - Partitions: 100 - Calculate Pi Benchmark OpenBenchmarking.org metrics for this test profile configuration based on 434 public results since 4 August 2022 with the latest data as of 14 April 2024 .
Below is an overview of the generalized performance for components where there is sufficient statistically significant data based upon user-uploaded results. It is important to keep in mind particularly in the Linux/open-source space there can be vastly different OS configurations, with this overview intended to offer just general guidance as to the performance expectations.
Component
Percentile Rank
# Compatible Public Results
Seconds (Average)
OpenBenchmarking.org Distribution Of Public Results - Row Count: 1000000 - Partitions: 100 - Calculate Pi Benchmark 434 Results Range From 9 To 2802 Seconds 9 65 121 177 233 289 345 401 457 513 569 625 681 737 793 849 905 961 1017 1073 1129 1185 1241 1297 1353 1409 1465 1521 1577 1633 1689 1745 1801 1857 1913 1969 2025 2081 2137 2193 2249 2305 2361 2417 2473 2529 2585 2641 2697 2753 2809 30 60 90 120 150
Based on OpenBenchmarking.org data, the selected test / test configuration (Apache Spark 3.3 - Row Count: 1000000 - Partitions: 100 - Calculate Pi Benchmark ) has an average run-time of 16 minutes . By default this test profile is set to run at least 3 times but may increase if the standard deviation exceeds pre-defined defaults or other calculations deem additional runs necessary for greater statistical accuracy of the result.
OpenBenchmarking.org Minutes Time Required To Complete Benchmark Row Count: 1000000 - Partitions: 100 - Calculate Pi Benchmark Run-Time 20 40 60 80 100 Min: 2 / Avg: 15.24 / Max: 104
Based on public OpenBenchmarking.org results, the selected test / test configuration has an average standard deviation of 0.1% .
OpenBenchmarking.org Percent, Fewer Is Better Average Deviation Between Runs Row Count: 1000000 - Partitions: 100 - Calculate Pi Benchmark Deviation 2 4 6 8 10 Min: 0 / Avg: 0.14 / Max: 2
Does It Scale Well With Increasing Cores? Yes , based on the automated analysis of the collected public benchmark data, this test / test settings does generally scale well with increasing CPU core counts. Data based on publicly available results for this test / test settings, separated by vendor, result divided by the reference CPU clock speed, grouped by matching physical CPU core count, and normalized against the smallest core count tested from each vendor for each CPU having a sufficient number of test samples and statistically significant data.
Intel AMD OpenBenchmarking.org Relative Core Scaling To Base Apache Spark CPU Core Scaling Row Count: 1000000 - Partitions: 100 - Calculate Pi Benchmark 4 8 12 16 24 32 64 128 3 6 9 12 15
Tested CPU Architectures This benchmark has been successfully tested on the below mentioned architectures. The CPU architectures listed is where successful OpenBenchmarking.org result uploads occurred, namely for helping to determine if a given test is compatible with various alternative CPU architectures.
CPU Architecture
Kernel Identifier
Verified On
Intel / AMD x86 64-bit
x86_64
(Many Processors)
ARMv8 64-bit
aarch64
ARMv8 Cortex-A72, ARMv8 Cortex-A76 4-Core, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 128-Core, ARMv8 Neoverse-N1 64-Core, ARMv8 Neoverse-N2, ARMv8 Neoverse-V1, ARMv8 Neoverse-V1 64-Core, Apple M1, Apple M2, Rockchip ARMv8 Cortex-A76 4-Core, rk1-mainline-emmc, rk1-mainline-nvme, rk1-rok-emmc
Recent Test Results
Featured Processor Comparison
1 System - 489 Benchmark Results
rk1-mainline-nvme - Turing Machines RK1 - 32GB
Ubuntu 22.04 - 6.7.0 - 1.3.255
3 Systems - 489 Benchmark Results
ARMv8 Cortex-A76 - Turing Machines RK1 - 32GB
Ubuntu 22.04 - 6.7.0 - 1.3.255
1 System - 205 Benchmark Results
rk1-mainline-emmc - Turing Machines RK1 - 32GB
Ubuntu 22.04 - 6.7.0 - 1.3.255
1 System - 627 Benchmark Results
1 System - 627 Benchmark Results
Featured Processor Comparison
1 System - 9 Benchmark Results
AMD Ryzen 9 5950X 16-Core - Intel 440BX - Intel 440BX
Ubuntu 22.04 - 5.15.0-100-generic - 1.3.255
1 System - 205 Benchmark Results
rk1-mainline-emmc - Turing Machines RK1 - 32GB
Ubuntu 22.04 - 6.7.0 - 1.3.255
1 System - 201 Benchmark Results
rk1-rok-emmc - Turing Machines RK1 - 32GB
Ubuntu 22.04 - 5.10.160-rockchip - GCC 11.4.0
1 System - 7 Benchmark Results
2 x Intel Xeon E5-2699 v4 - Supermicro X10DRL-i v1.01 - Intel Xeon E7 v4
Ubuntu 22.04 - 6.5.0-21-generic - X Server 1.21.1.4
Featured Processor Comparison
3 Systems - 205 Benchmark Results
ARMv8 Cortex-A76 - Turing Machines RK1 - 32GB
Ubuntu 22.04 - 6.7.0 - 1.3.255
3 Systems - 489 Benchmark Results
ARMv8 Cortex-A76 - Turing Machines RK1 - 32GB
Ubuntu 22.04 - 6.7.0 - 1.3.255
1 System - 7 Benchmark Results
2 x Intel Xeon E5-2699 v4 - Supermicro X10DRL-i v1.01 - Intel Xeon E7 v4
Ubuntu 22.04 - 6.5.0-21-generic - X Server 1.21.1.4
Most Popular Test Results
2 Systems - 384 Benchmark Results
Intel Core i9-13900K - ASUS PRIME Z790-P WIFI - Intel Device 7a27
Ubuntu 22.10 - 5.19.0-23-generic - GNOME Shell 43.0
Featured Graphics Comparison
AMD Ryzen 5 7600X 6-Core - ASUS ROG CROSSHAIR X670E HERO - AMD Device 14d8
Ubuntu 22.04 - 6.0.0-060000rc7daily20221001-generic - GNOME Shell 42.4
4 Systems - 134 Benchmark Results
AMD Ryzen 9 5950X 16-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Starship
Ubuntu 22.04 - 5.15.0-40-generic - GNOME Shell 42.2
2 Systems - 156 Benchmark Results
2 x AMD EPYC 75F3 32-Core - ASRockRack ROME2D16-2T - AMD Starship
Ubuntu 21.10 - 5.19.0-rc2-phx-mglru-v12 - GNOME Shell 40.5
3 Systems - 311 Benchmark Results
Intel Core i5-12600K - ASUS PRIME Z690-P WIFI D4 - Intel Device 7aa7
Ubuntu 22.04 - 5.19.0-051900rc6daily20220716-generic - GNOME Shell 42.1
2 Systems - 218 Benchmark Results
Apple M1 - Apple Mac mini - 8GB
Arch Linux ARM - 5.19.0-rc7-asahi-2-1-ARCH - KDE Plasma 5.25.4
2 Systems - 361 Benchmark Results
AMD Ryzen Threadripper 3960X 24-Core - MSI Creator TRX40 - AMD Starship
Ubuntu 22.04 - 5.19.0-051900rc7-generic - GNOME Shell 42.2
2 Systems - 219 Benchmark Results
AMD Ryzen 9 5900HX - ASUS G513QY v1.0 - AMD Renoir
Arch rolling - 5.18.16-arch1-1 - KDE Plasma 5.25.4
2 Systems - 130 Benchmark Results
Intel Xeon Silver 4216 - TYAN S7100AG2NR - Intel Sky Lake-E DMI3 Registers
Debian 11 - 5.10.0-10-amd64 - X Server
2 Systems - 146 Benchmark Results
2 x Intel Xeon Gold 5220R - TYAN S7106 - Intel Sky Lake-E DMI3 Registers
Ubuntu 20.04 - 6.1.0-phx - GNOME Shell 3.36.9
2 Systems - 112 Benchmark Results
AMD Ryzen 7 PRO 6850U - LENOVO 21CM0001US - AMD Device 14b5
Ubuntu 22.04 - 5.15.0-41-generic - GNOME Shell 42.2
2 Systems - 112 Benchmark Results
AMD Ryzen 7 PRO 5850U - HP 8A78 - AMD Renoir
Ubuntu 22.04 - 5.19.0-051900rc7-generic - GNOME Shell 42.2
3 Systems - 190 Benchmark Results
AMD Ryzen 7 PRO 6850U - LENOVO 21CM0001US - AMD Device 14b5
Arch rolling - 5.18.16-arch1-1 - KDE Plasma 5.25.4
Featured Graphics Comparison
AMD Ryzen 9 5900HX - ASUS G513QY v1.0 - AMD Renoir
Ubuntu 22.10 - 5.15.0-27-generic - GNOME Shell 42.3.1
Featured Kernel Comparison
AMD Ryzen Threadripper PRO 5965WX 24-Cores - ASUS Pro WS WRX80E-SAGE SE WIFI - AMD Starship
Ubuntu 22.04 - 5.19.0-051900-generic - GNOME Shell 42.2