PyTorch

This is a benchmark of PyTorch making use of pytorch-benchmark [https://github.com/LukasHedegaard/pytorch-benchmark].

To run this test with the Phoronix Test Suite, the basic command is: phoronix-test-suite benchmark pytorch.

Project Site

pytorch.org

Source Repository

github.com

Test Created

16 November 2023

Last Updated

26 March 2024

Test Maintainer

Michael Larabel 

Test Type

System

Average Install Time

4 Minutes, 53 Seconds

Average Run Time

12 Minutes, 25 Seconds

Test Dependencies

Python

Accolades

10k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page ViewsOpenBenchmarking.orgEventsPyTorch Popularity Statisticspts/pytorch2023.112023.122024.012024.022024.032024.042024.052024.062024.072024.082024.092024.102024.114K8K12K16K20K
* 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 21 November 2024.
NVIDIA CUDA GPU5.1%CPU94.9%Device Option PopularityOpenBenchmarking.org
1616.2%120.5%25617.4%6420.2%51216.4%329.2%Batch Size Option PopularityOpenBenchmarking.org
ResNet-5054.4%ResNet-15231.7%Efficientnet_v2_l13.9%Model Option PopularityOpenBenchmarking.org

Revision History

pts/pytorch-1.1.0   [View Source]   Tue, 26 Mar 2024 15:55:49 GMT
Update to PyTorch 2.2.1 to allow working on Ubuntu 24.04.

pts/pytorch-1.0.1   [View Source]   Sat, 06 Jan 2024 15:54:34 GMT
Add NVIDIA CUDA GPU option.

pts/pytorch-1.0.0   [View Source]   Thu, 16 Nov 2023 15:22:58 GMT
Initial commit.

Suites Using This Test

Machine Learning

HPC - High Performance Computing


Performance Metrics

Analyze Test Configuration:

PyTorch 2.2.1

Device: CPU - Batch Size: 1 - Model: ResNet-50

OpenBenchmarking.org metrics for this test profile configuration based on 290 public results since 26 March 2024 with the latest data as of 10 November 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
batches/sec (Average)
97th
16
85.2 +/- 1.1
93rd
6
78.5 +/- 0.7
89th
7
71.2 +/- 3.7
85th
4
67.7 +/- 0.4
83rd
5
65.9 +/- 0.4
76th
6
61.1 +/- 5.8
Mid-Tier
75th
< 60.2
74th
3
59.6 +/- 1.0
73rd
3
58.8 +/- 0.1
68th
3
56.5 +/- 0.8
66th
3
53.9 +/- 0.7
59th
11
51.0 +/- 2.0
59th
3
49.7 +/- 1.1
57th
5
48.4 +/- 2.8
56th
3
46.5 +/- 1.8
55th
3
46.4 +/- 0.1
Median
50th
44.2
49th
4
43.3 +/- 0.6
44th
4
40.9 +/- 0.2
43rd
4
40.7 +/- 0.2
42nd
4
40.7 +/- 0.7
34th
4
33.4 +/- 0.4
30th
3
32.0 +/- 0.3
27th
4
28.9 +/- 0.7
Low-Tier
25th
< 27.5
24th
4
26.0 +/- 1.0
24th
4
25.4 +/- 2.5
17th
10
22.3 +/- 1.4
17th
4
21.2 +/- 0.2
14th
3
20.9 +/- 0.5
13th
4
20.3 +/- 0.7
11th
4
18.9 +/- 2.5
7th
7
15.5 +/- 1.9
OpenBenchmarking.orgDistribution Of Public Results - Device: CPU - Batch Size: 1 - Model: ResNet-50290 Results Range From 12 To 99 batches/sec1220283644526068768492100108918273645

Based on OpenBenchmarking.org data, the selected test / test configuration (PyTorch 2.2.1 - Device: CPU - Batch Size: 1 - Model: ResNet-50) has an average run-time of 4 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.orgMinutesTime Required To Complete BenchmarkDevice: CPU - Batch Size: 1 - Model: ResNet-50Run-Time510152025Min: 1 / Avg: 3.29 / Max: 18

Based on public OpenBenchmarking.org results, the selected test / test configuration has an average standard deviation of 1.1%.

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsDevice: CPU - Batch Size: 1 - Model: ResNet-50Deviation246810Min: 0 / Avg: 1.07 / Max: 6

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.

OpenBenchmarking.orgRelative Core Scaling To BasePyTorch CPU Core ScalingDevice: CPU - Batch Size: 1 - Model: ResNet-50681216960.77771.55542.33313.11083.8885

Notable Instruction Set Usage

Notable instruction set extensions supported by this test, based on an automatic analysis by the Phoronix Test Suite / OpenBenchmarking.org analytics engine.

Instruction Set
Support
Instructions Detected
SSE2 (SSE2)
Used by default on supported hardware.
 
MOVDQA MOVDQU PUNPCKLQDQ PADDQ CVTSS2SD UCOMISD CVTSD2SS MOVD CVTSI2SD ADDSD MULSD XORPD DIVSD SUBSD CVTTSD2SI COMISD MOVAPD SHUFPD ANDPD UNPCKLPD MULPD UNPCKHPD SUBPD ADDPD PUNPCKHQDQ PSUBQ PSHUFD PSRLDQ ORPD SQRTSD ANDNPD CMPNLESD MINSD MAXSD MOVMSKPD MOVUPD CMPLTSD DIVPD
Last automated analysis: 6 April 2024

This test profile binary relies on the shared libraries libm.so.6, libexpat.so.1, libz.so.1, libc.so.6.

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
AmpereOne 192-Core, AmpereOne 72-Core

Recent Test Results

OpenBenchmarking.org Results Compare

1 System - 323 Benchmark Results

AMD Ryzen Threadripper 7960X 24-Cores - Gigabyte TRX50 AERO D - AMD Device 14a4

Ubuntu 24.04 - 6.8.0-48-generic - GNOME Shell 46.0

2 Systems - 541 Benchmark Results

ARMv8 Cortex-A76 - Raspberry Pi 5 Model B Rev 1.0 - Broadcom BCM2712

Ubuntu 24.04 - 6.8.0-1012-raspi - KDE Plasma 5.27.11

2 Systems - 525 Benchmark Results

ARMv8 Cortex-A76 - Raspberry Pi 5 Model B Rev 1.0 - Broadcom BCM2712

Ubuntu 24.04 - 6.8.0-1012-raspi - KDE Plasma 5.27.11

1 System - 342 Benchmark Results

Intel Core i9-12900K - ASUS PRIME Z790-V AX - Intel Raptor Lake-S PCH

Ubuntu 24.04 - 6.8.0-47-generic - GNOME Shell 46.0

1 System - 18 Benchmark Results

AMD Ryzen Threadripper 3960X 24-Core - ASUS ROG ZENITH II EXTREME ALPHA - AMD Starship

Fedora Linux 40 - 6.11.3-200.fc40.x86_64 - GNOME Shell 46.5

1 System - 495 Benchmark Results

1 System - 336 Benchmark Results

AmpereOne - Supermicro ARS-211M-NR R13SPD v1.02 - Ampere Computing LLC Device e208

Ubuntu 24.04 - 6.8.0-39-generic-64k - GCC 13.2.0

Most Popular Test Results

OpenBenchmarking.org Results Compare

3 Systems - 18 Benchmark Results

Intel Core i9-14900K - ASUS PRIME Z790-P WIFI - Intel Device 7a27

Ubuntu 23.10 - 6.8.0-phx - GNOME Shell 45.1

2 Systems - 57 Benchmark Results

AMD Ryzen Threadripper PRO 5965WX 24-Cores - ASUS Pro WS WRX80E-SAGE SE WIFI - AMD Starship

Ubuntu 23.10 - 6.5.0-26-generic - GNOME Shell 45.0

5 Systems - 464 Benchmark Results

AMD EPYC 4564P 16-Core - Supermicro AS-3015A-I H13SAE-MF v1.00 - AMD Device 14d8

Ubuntu 24.04 - 6.8.0-11-generic - GNOME Shell 45.3

2 Systems - 42 Benchmark Results

AMD Ryzen 9 5900HX - ASUS ROG Strix G513QY_G513QY G513QY v1.0 - AMD Renoir

Ubuntu 22.10 - 5.19.0-46-generic - GNOME Shell 43.0

2 Systems - 42 Benchmark Results

AMD Ryzen 5 5500U - NB01 TUXEDO Aura 15 Gen2 NL5xNU - AMD Renoir

Tuxedo 22.04 - 6.5.0-10027-tuxedo - KDE Plasma 5.27.10

2 Systems - 108 Benchmark Results

Intel Core i7-1065G7 - Dell 06CDVY - Intel Ice Lake-LP DRAM

Ubuntu 23.10 - 6.7.0-060700rc5-generic - GNOME Shell 45.1

3 Systems - 55 Benchmark Results

2 x AMD EPYC 9684X 96-Core - AMD Titanite_4G - AMD Device 14a4

Ubuntu 23.10 - 6.5.0-25-generic - GCC 13.2.0

2 Systems - 137 Benchmark Results

Intel Core i9-14900K - ASUS PRIME Z790-P WIFI - Intel Raptor Lake-S PCH

Clear Linux OS 41680 - 6.8.9-1432.native - GNOME Shell 46.1

2 Systems - 49 Benchmark Results

2 x AMD EPYC 9684X 96-Core - AMD Titanite_4G - AMD Device 14a4

Ubuntu 23.10 - 6.5.0-25-generic - GCC 13.2.0

4 Systems - 18 Benchmark Results

AMD Ryzen 9 7950X 16-Core - ASUS ROG STRIX X670E-E GAMING WIFI - AMD Device 14d8

Ubuntu 23.10 - 6.7.0-060700-generic - GNOME Shell 45.2

2 Systems - 12 Benchmark Results

2 x INTEL XEON PLATINUM 8592+ - Quanta Cloud QuantaGrid D54Q-2U S6Q-MB-MPS - Intel Device 1bce

Ubuntu 23.10 - 6.6.0-rc5-phx-patched - GNOME Shell 45.0

2 Systems - 206 Benchmark Results

AMD Ryzen Threadripper 3990X 64-Core - Gigabyte TRX40 AORUS PRO WIFI - AMD Starship

Pop 22.04 - 6.8.0-76060800daily20240311-generic - GNOME Shell 42.5

2 Systems - 219 Benchmark Results

AMD Ryzen 7 7840HS - Framework Laptop 16 - AMD Device 14e8

Ubuntu 23.10 - 6.7.0-060700-generic - GNOME Shell 45.2

4 Systems - 18 Benchmark Results

AMD Ryzen Threadripper 7980X 64-Cores - System76 Thelio Major - AMD Device 14a4

Ubuntu 23.10 - 6.5.0-26-generic - GNOME Shell 45.2

3 Systems - 58 Benchmark Results

AMD Ryzen Threadripper 3970X 32-Core - ASUS ROG ZENITH II EXTREME - AMD Starship

Ubuntu 22.04 - 6.5.0-25-generic - GNOME Shell 42.2

Find More Test Results