ONNX Runtime

ONNX Runtime is developed by Microsoft and partners as a open-source, cross-platform, high performance machine learning inferencing and training accelerator. This test profile runs the ONNX Runtime with various models available from the ONNX Model Zoo.

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

Project Site

onnxruntime.ai

Source Repository

github.com

Test Created

16 January 2021

Last Updated

2 February 2024

Test Maintainer

Michael Larabel 

Test Type

System

Average Install Time

14 Minutes, 56 Seconds

Average Run Time

5 Minutes, 18 Seconds

Test Dependencies

Python + Git + C/C++ Compiler Toolchain + CMake

Accolades

40k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsONNX Runtime Popularity Statisticspts/onnx2021.012021.022021.032021.042021.052021.062021.072021.082021.092021.102021.112021.122022.012022.022022.032022.042022.052022.062022.072022.082022.092022.102022.112022.122023.012023.022023.032023.042023.052023.062023.072023.082023.092023.102023.112023.122024.012024.022024.032024.045K10K15K20K25K
* 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.
*** Test profile page view reporting began March 2021.
Data updated weekly as of 13 April 2024.
T5 Encoder10.4%GPT-29.8%ResNet50 v1-12-int810.0%bertsquad-1210.0%yolov410.6%ArcFace ResNet-1009.8%CaffeNet 12-int810.4%Faster R-CNN R-50-FPN-int88.9%fcn-resnet101-1110.4%super-resolution-109.6%Model Option PopularityOpenBenchmarking.org
Parallel46.7%Standard53.3%Executor Option PopularityOpenBenchmarking.org

Revision History

pts/onnx-1.17.0   [View Source]   Fri, 02 Feb 2024 20:20:26 GMT
Update against ONNX Runtime 1.17, update download links.

pts/onnx-1.6.0   [View Source]   Sat, 11 Feb 2023 07:19:48 GMT
Update against ONNX Runtime 1.14 upstream.

pts/onnx-1.5.0   [View Source]   Wed, 30 Mar 2022 14:24:29 GMT
Add standard/sequential and parallel executor option.

pts/onnx-1.4.0   [View Source]   Sat, 26 Mar 2022 18:00:24 GMT
Update against ONNX 1.11 upstream, switch to parallel executor, add some new models too.

pts/onnx-1.3.0   [View Source]   Fri, 03 Dec 2021 19:38:42 GMT
Update against upstream ONNX-Runtime 1.10.

pts/onnx-1.2.1   [View Source]   Sat, 30 Oct 2021 05:02:16 GMT
Add cmake as necessary external dependency.

pts/onnx-1.2.0   [View Source]   Fri, 29 Oct 2021 17:00:07 GMT
Update against ONNX 1.9.1 upstream. Changes based on https://github.com/phoronix-test-suite/phoronix-test-suite/pull/560 while also needing to adjust the XML options for removal of bertsquad. Closes: https://github.com/phoronix-test-suite/phoronix-test-suite/pull/560

pts/onnx-1.1.0   [View Source]   Mon, 23 Aug 2021 19:03:17 GMT
Update against ONNX 1.8.2 upstream due to prior version now having build problems on newer distributions.

pts/onnx-1.0.1   [View Source]   Sun, 17 Jan 2021 08:51:00 GMT
Increase run time limit to help lower deviation on laptops.

pts/onnx-1.0.0   [View Source]   Sat, 16 Jan 2021 20:09:33 GMT
Initial commit of Microsoft ONNX Runtime.

Suites Using This Test

Machine Learning

HPC - High Performance Computing


Performance Metrics

Analyze Test Configuration:

ONNX Runtime 1.6

Model: shufflenet-v2-10 - Device: OpenMP CPU

OpenBenchmarking.org metrics for this test profile configuration based on 590 public results since 16 January 2021 with the latest data as of 31 January 2022.

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
Inferences Per Minute (Average)
100th
7
20368 +/- 350
100th
7
19991 +/- 92
98th
8
18169 +/- 272
97th
6
17834 +/- 242
95th
14
17494 +/- 239
94th
3
17309 +/- 21
94th
3
17272 +/- 374
94th
3
17260 +/- 68
92nd
3
16983 +/- 89
92nd
4
16958 +/- 11
90th
3
16557 +/- 13
89th
4
16509 +/- 39
88th
3
16273 +/- 44
88th
3
16074 +/- 79
86th
21
15861 +/- 445
86th
19
15850 +/- 577
81st
8
15317 +/- 76
80th
3
15280 +/- 26
79th
3
15149 +/- 221
78th
4
14718 +/- 91
78th
3
14649 +/- 8
77th
4
14157 +/- 13
76th
3
14108 +/- 8
Mid-Tier
75th
< 13954
74th
4
13644 +/- 261
73rd
3
13575 +/- 24
71st
8
13352 +/- 249
71st
5
13275 +/- 467
71st
3
13171 +/- 37
70th
6
13105 +/- 1319
70th
3
13102 +/- 62
69th
3
12877 +/- 52
67th
4
12324 +/- 24
65th
9
12161 +/- 77
63rd
5
11939 +/- 51
63rd
4
11935 +/- 108
62nd
18
11788 +/- 792
62nd
3
11771 +/- 31
61st
3
11693 +/- 40
60th
3
11622 +/- 52
59th
3
11559 +/- 25
58th
3
11340 +/- 12
56th
3
11259 +/- 28
56th
5
11251 +/- 28
54th
6
10954 +/- 978
53rd
11
10798 +/- 538
53rd
8
10727 +/- 313
52nd
3
10691 +/- 13
51st
4
10598 +/- 18
Median
50th
10582
50th
3
10473 +/- 118
49th
3
10374 +/- 7
48th
8
10021 +/- 623
46th
3
9747 +/- 25
45th
5
9609 +/- 238
44th
3
9512 +/- 518
44th
5
9500 +/- 45
44th
3
9480 +/- 10
41st
6
9050 +/- 10
36th
3
8473 +/- 15
36th
4
8466 +/- 116
33rd
6
8136 +/- 205
31st
6
7991 +/- 8
30th
3
7866 +/- 78
29th
3
7838 +/- 9
29th
3
7684 +/- 15
26th
3
6835 +/- 12
Low-Tier
25th
< 6773
24th
3
6678 +/- 8
22nd
3
6565 +/- 174
22nd
3
6504 +/- 147
20th
4
6369 +/- 36
17th
4
6123 +/- 76
17th
5
6066 +/- 257
16th
5
5977 +/- 169
15th
4
5913 +/- 329
14th
3
5806 +/- 27
14th
8
5694 +/- 352
11th
3
5419 +/- 8
10th
3
5013 +/- 55
10th
10
4923 +/- 547
9th
3
4743 +/- 16
7th
10
4559 +/- 147
6th
4
4380 +/- 123
2nd
3
350 +/- 1
OpenBenchmarking.orgDistribution Of Public Results - Model: shufflenet-v2-10 - Device: OpenMP CPU590 Results Range From 350 To 20647 Inferences Per Minute3507561162156819742380278631923598400444104816522256286034644068467252765880648470887692829688100941050010906113121171812124125301293613342137481415414560149661537215778161841659016996174021780818214186201902619432198382024420650714212835

Based on OpenBenchmarking.org data, the selected test / test configuration (ONNX Runtime 1.6 - Model: shufflenet-v2-10 - Device: OpenMP CPU) has an average run-time of 9 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 BenchmarkModel: shufflenet-v2-10 - Device: OpenMP CPURun-Time612182430Min: 3 / Avg: 8.69 / Max: 24

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

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsModel: shufflenet-v2-10 - Device: OpenMP CPUDeviation3691215Min: 0 / Avg: 0.77 / Max: 10

Does It Scale Well With Increasing Cores?

No, based on the automated analysis of the collected public benchmark data, this test / test settings does not 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.

AMDIntelOpenBenchmarking.orgRelative Core Scaling To BaseONNX Runtime CPU Core ScalingModel: shufflenet-v2-10 - Device: OpenMP CPU46812163248640.73271.46542.19812.93083.6635

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 PUNPCKLQDQ MOVDQU CVTSI2SD DIVSD MOVAPD COMISD UNPCKLPD MULSD CVTTSD2SI ADDSD SUBSD MOVUPD MOVD PUNPCKHQDQ PSUBQ PSHUFD PSRLDQ UCOMISD CVTSS2SD PADDQ ANDPD CVTSD2SS DIVPD MULPD SUBPD PMULUDQ ADDPD SQRTSD CVTPS2PD MINPD MAXPD CVTTPD2DQ CVTDQ2PD CMPLTPD PSHUFLW MAXSD MINSD XORPD MOVLPD SQRTPD CVTTPS2DQ CVTDQ2PS ANDNPD ORPD CVTPD2PS CMPLESD UNPCKHPD CMPLEPD SHUFPD MOVHPD CVTPS2DQ
Used by default on supported hardware.
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VBROADCASTSD VINSERTF128 VZEROUPPER VBROADCASTSS VMASKMOVPS VEXTRACTF128 VZEROALL VPERM2F128 VPERMILPS
Used by default on supported hardware.
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VPBROADCASTD VPMASKMOVD VEXTRACTI128 VINSERTI128 VPERM2I128 VPERMD VPBROADCASTW VPERMQ VPBROADCASTQ VPMASKMOVQ VPBROADCASTB VPSLLVD VPSRAVD VPSRLVD VPSLLVQ VPSRLVQ VPERMPD VGATHERQPD VPGATHERDQ VPGATHERQQ
AVX Vector Neural Network Instructions (AVX-VNNI)
Used by default on supported hardware.
 
VPDPBUSDS
FMA (FMA)
Used by default on supported hardware.
Found on Intel processors since Haswell (2013).
Found on AMD processors since Bulldozer (2011).

 
VFMADD231PD VFMADD213PD VFMADD231PS VFMADD213PS VFMADD132SS VFMADD132PS VFMADD132SD VFMADD213SS VFMADD132PD VFNMADD231PD VFMADD231SS VFNMADD213PS VFNMADD132PS VFNMADD213SS VFNMADD132SS VFNMADD231PS VFNMADD132PD VFNMADD132SD VFMSUB132SS VFMSUB132SD VFMADD231SD VFMADD213SD VFNMADD213PD VFNMADD213SD VFNMADD231SS VFNMADD231SD
The test / benchmark does honor compiler flag changes.
Last automated analysis: 10 May 2021

This test profile binary relies on the shared libraries libonnxruntime.so.1.6.0, libdl.so.2, libpthread.so.0, libc.so.6, libgomp.so.1, libm.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
ARMv8 Cortex-A57 4-Core, ARMv8 Cortex-A72 4-Core, Ampere Altra ARMv8 Neoverse-N1 160-Core, Ampere eMAG ARMv8 32-Core