TNN

TNN is an open-source deep learning reasoning framework developed by Tencent.

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

Project Site

github.com

Test Created

24 September 2020

Last Updated

18 June 2021

Test Maintainer

Michael Larabel 

Test Type

System

Average Install Time

29 Seconds

Average Run Time

1 Minute, 11 Seconds

Test Dependencies

CMake + C/C++ Compiler Toolchain

Accolades

10k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page Views ***OpenBenchmarking.orgEventsTNN Popularity Statisticspts/tnn2020.092020.112021.012021.032021.052021.072021.092021.112022.012022.032022.052022.072022.092022.112023.012023.032023.052023.072023.092023.112024.012024.032024.052K4K6K8K10K
* 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 7 May 2024.
MobileNet v224.9%SqueezeNet v1.124.2%DenseNet26.3%SqueezeNet v224.6%Model Option PopularityOpenBenchmarking.org

Revision History

pts/tnn-1.1.0   [View Source]   Fri, 18 Jun 2021 07:29:44 GMT
Update against TNN 0.3 upstream release.

pts/tnn-1.0.1   [View Source]   Mon, 11 Jan 2021 13:15:50 GMT
Update download mirror as the GitHub URL changed its checksums...

pts/tnn-1.0.0   [View Source]   Thu, 24 Sep 2020 18:33:29 GMT
Initial commit of Tencent TNN framework.

Suites Using This Test

Machine Learning

HPC - High Performance Computing


Performance Metrics

Analyze Test Configuration:

TNN 0.2.3

Target: CPU - Model: MobileNet v2

OpenBenchmarking.org metrics for this test profile configuration based on 1,175 public results since 24 September 2020 with the latest data as of 20 January 2023.

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
ms (Average)
83rd
5
250 +/- 10
81st
28
254 +/- 23
81st
15
255 +/- 4
Mid-Tier
75th
> 265
75th
6
265 +/- 1
73rd
4
270 +/- 4
70th
28
274 +/- 4
67th
10
279 +/- 4
67th
6
280 +/- 1
65th
6
282 +/- 1
64th
10
283 +/- 3
62nd
5
286 +/- 2
62nd
7
286 +/- 7
61st
7
287 +/- 2
57th
5
293 +/- 1
57th
6
294 +/- 2
56th
10
295 +/- 9
56th
12
296 +/- 3
55th
13
297 +/- 10
55th
11
298 +/- 3
54th
7
299 +/- 1
51st
6
302 +/- 1
51st
4
302 +/- 14
51st
6
302 +/- 2
Median
50th
303
49th
8
306 +/- 3
47th
6
311 +/- 3
47th
6
312 +/- 2
46th
8
315 +/- 45
44th
6
319 +/- 3
44th
7
320 +/- 3
42nd
9
323 +/- 2
41st
5
325 +/- 5
40th
6
326 +/- 1
40th
13
327 +/- 5
38th
6
331 +/- 1
35th
6
334 +/- 5
35th
6
335 +/- 6
35th
6
335 +/- 8
35th
6
336 +/- 3
33rd
5
338 +/- 3
33rd
4
338 +/- 6
32nd
13
339 +/- 4
32nd
6
339 +/- 1
31st
6
340 +/- 1
30th
6
341 +/- 1
29th
6
342 +/- 1
28th
6
345 +/- 27
27th
11
349 +/- 12
27th
6
349 +/- 8
Low-Tier
25th
> 351
22nd
6
357 +/- 1
21st
8
358 +/- 4
20th
8
361 +/- 3
19th
9
362 +/- 7
19th
6
362 +/- 1
19th
10
363 +/- 15
17th
6
366 +/- 4
17th
7
366 +/- 4
17th
4
367 +/- 5
16th
13
368 +/- 2
15th
6
369 +/- 1
15th
6
369 +/- 3
13th
6
370 +/- 2
11th
3
375 +/- 1
11th
6
378 +/- 3
10th
6
386 +/- 47
7th
6
424 +/- 4
5th
3
560 +/- 2
4th
4
613 +/- 3
1st
12
1403 +/- 157
OpenBenchmarking.orgDistribution Of Public Results - Target: CPU - Model: MobileNet v21175 Results Range From 183 To 3985 ms1832603374144915686457227998769531030110711841261133814151492156916461723180018771954203121082185226223392416249325702647272428012878295530323109318632633340341734943571364837253802387939564033110220330440550

Based on OpenBenchmarking.org data, the selected test / test configuration (TNN 0.2.3 - Target: CPU - Model: MobileNet v2) has an average run-time of 2 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 BenchmarkTarget: CPU - Model: MobileNet v2Run-Time246810Min: 1 / Avg: 1.13 / Max: 5

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

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsTarget: CPU - Model: MobileNet v2Deviation246810Min: 0 / Avg: 0.19 / Max: 2

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 BaseTNN CPU Core ScalingTarget: CPU - Model: MobileNet v24681216243248640.70741.41482.12222.82963.537

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.
 
PUNPCKLQDQ MOVDQA MOVDQU PSRLDQ CVTSS2SD CVTSD2SS MOVAPD ADDSD UCOMISD SQRTSD MULSD DIVSD COMISD MOVD UNPCKLPD CVTPD2PS PSHUFD PMULUDQ PADDQ CVTDQ2PS CVTSI2SD CVTTSD2SI MOVUPD MAXSD XORPD SUBSD CVTTPS2DQ CVTPS2PD UNPCKHPD MULPD ANDPD CMPNLESD ANDNPD ORPD ADDPD SUBPD CVTDQ2PD CMPLEPD CVTTPD2DQ
Requires passing a supported compiler/build flag (verified with targets: sandybridge, skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VZEROUPPER VEXTRACTF128 VINSERTF128 VPERMILPS VPERM2F128 VBROADCASTSS VMASKMOVPS VBROADCASTSD
Requires passing a supported compiler/build flag (verified with targets: skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VEXTRACTI128 VPERMD VPBROADCASTQ VPERM2I128 VPBROADCASTD VPERMQ VINSERTI128 VPGATHERDD VPMASKMOVD VPBROADCASTW VPBROADCASTB
FMA (FMA)
Requires passing a supported compiler/build flag (verified with targets: skylake, tigerlake, cascadelake, sapphirerapids, alderlake, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Bulldozer (2011).

 
VFMADD132PS VFNMADD132SS VFMADD231SS VFMADD231PS VFNMADD132PS VFMADD132SS VFMADD132SD VFMSUB231SD VFNMSUB231SD VFNMSUB132SD VFMADD132PD VFNMADD132PD VFMADD213PS VFMADD213SS VFNMADD231SD VFNMADD132SD VFMADD231PD VFMSUB231PS VFMSUB231SS VFNMADD231PD VFMADD231SD VFMSUB132SS VFMADD213SD
Advanced Vector Extensions 512 (AVX512)
Requires passing a supported compiler/build flag (verified with targets: cascadelake, sapphirerapids).
 
(ZMM REGISTER USE)
The test / benchmark does honor compiler flag changes.
Last automated analysis: 18 January 2022

This test profile binary relies on the shared libraries libTNN.so.0, libm.so.6, libc.so.6, libgomp.so.1.

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)
IBM POWER (PowerPC) 64-bit
ppc64le
POWER9 4-Core, POWER9 44-Core
ARMv7 32-bit
armv7l
ARMv7 Cortex-A72 4-Core
ARMv8 64-bit
aarch64
ARMv8 Cortex-A53 4-Core, ARMv8 Cortex-A72 4-Core, ARMv8 Neoverse-N1 64-Core, Ampere Altra ARMv8 Neoverse-N1 160-Core, Ampere Altra ARMv8 Neoverse-N1 64-Core, Ampere Altra ARMv8 Neoverse-N1 80-Core, Ampere eMAG ARMv8 32-Core