Smallpt

Smallpt is a C++ global illumination renderer written in less than 100 lines of code. Global illumination is done via unbiased Monte Carlo path tracing and there is multi-threading support via the OpenMP library.

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

Project Site

kevinbeason.com

Test Created

6 December 2010

Last Updated

11 October 2019

Test Maintainer

Michael Larabel 

Test Type

Processor

Average Install Time

2 Seconds

Average Run Time

11 Minutes, 38 Seconds

Test Dependencies

C/C++ Compiler Toolchain

Accolades

200k+ Downloads + 10k+ Public Benchmark Results

Supported Platforms


Public Result Uploads *Reported Test Completions **Reported Installs **Test Profile Page Views ***OpenBenchmarking.orgEventsSmallpt Popularity Statisticspts/smallpt2010.122011.042011.082011.122012.042012.082012.122013.042013.082013.122014.042014.082014.122015.042015.082015.122016.042016.082016.122017.042017.082017.122018.042018.082018.122019.042019.082019.122020.042020.082020.122021.042021.082021.122022.042022.0840K80K120K160K200K
* 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 current as of 28 November 2022.

Revision History

pts/smallpt-1.2.1   [View Source]   Fri, 11 Oct 2019 10:50:27 GMT
Windows support.

pts/smallpt-1.2.0   [View Source]   Fri, 07 Dec 2018 15:54:02 GMT
Apply -O3 optimization by default per https://github.com/phoronix-test-suite/test-profiles/pull/42

pts/smallpt-1.1.0   [View Source]   Sat, 28 Jul 2018 12:33:45 GMT
User more samples per pixel so more demanding for newer CPus, also use PTS timer for greater precision.

pts/smallpt-1.0.3   [View Source]   Sun, 08 Apr 2018 06:31:53 GMT
Fix building on BSD.

pts/smallpt-1.0.2   [View Source]   Mon, 12 Oct 2015 11:55:19 GMT
Add Solaris and BSD to SupportedPlatforms.

pts/smallpt-1.0.1   [View Source]   Mon, 12 Mar 2012 16:18:55 GMT
Ensure smallpt g++ compilation honors CXXFLAGS.

pts/smallpt-1.0.0   [View Source]   Mon, 06 Dec 2010 15:21:16 GMT
Initial import into OpenBenchmarking.org

Suites Using This Test

Multi-Core

Creator Workloads

Renderers


Performance Metrics

Analyze Test Configuration:

Smallpt 1.0

Global Illumination Renderer; 128 Samples

OpenBenchmarking.org metrics for this test profile configuration based on 4,945 public results since 7 December 2018 with the latest data as of 5 December 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
Seconds (Average)
77th
9
10 +/- 1
Mid-Tier
75th
> 11
75th
7
11 +/- 1
74th
12
11 +/- 1
70th
4
13 +/- 1
66th
8
15 +/- 1
64th
4
16
60th
4
19 +/- 2
59th
6
19 +/- 2
57th
3
22 +/- 1
56th
3
23 +/- 1
55th
6
23 +/- 2
53rd
7
25 +/- 3
53rd
3
26 +/- 3
Median
50th
27
50th
10
27 +/- 3
50th
9
27 +/- 1
50th
4
28 +/- 3
50th
4
28 +/- 2
49th
3
28 +/- 3
47th
3
30 +/- 2
47th
10
30 +/- 2
47th
3
31 +/- 3
46th
5
32 +/- 4
45th
17
33 +/- 2
44th
7
33 +/- 1
44th
3
33 +/- 4
43rd
4
35 +/- 4
43rd
3
35 +/- 2
43rd
6
35 +/- 4
41st
4
37 +/- 3
41st
9
37 +/- 1
41st
4
38 +/- 3
40th
13
38 +/- 2
40th
10
38 +/- 5
39th
3
39 +/- 3
38th
14
39 +/- 2
38th
10
40 +/- 4
38th
6
41 +/- 5
37th
14
41 +/- 4
37th
3
41 +/- 5
37th
3
42 +/- 5
37th
15
42 +/- 2
36th
5
44 +/- 1
32nd
9
52 +/- 2
30th
3
59 +/- 4
28th
7
67 +/- 2
28th
4
67 +/- 9
28th
11
68 +/- 2
26th
5
73 +/- 7
Low-Tier
25th
> 74
25th
3
76 +/- 2
25th
6
76 +/- 5
25th
7
76 +/- 2
25th
8
77 +/- 9
25th
18
77 +/- 8
24th
3
78 +/- 7
24th
6
80 +/- 7
23rd
3
81 +/- 12
23rd
3
82 +/- 11
23rd
11
82 +/- 4
23rd
3
84 +/- 1
23rd
4
85 +/- 6
23rd
16
85 +/- 4
22nd
9
87 +/- 1
21st
4
91 +/- 3
20th
5
95 +/- 10
18th
9
102 +/- 6
18th
4
103 +/- 9
16th
3
114 +/- 4
8th
6
185 +/- 7
8th
3
196 +/- 13
7th
11
203 +/- 2
6th
3
231 +/- 10
5th
10
233 +/- 3
3rd
4
340 +/- 1
1st
3
1954 +/- 11
OpenBenchmarking.orgDistribution Of Public Results - Global Illumination Renderer; 128 Samples4931 Results Range From 1 To 12580 Seconds1253505757100912611513176520172269252127733025327735293781403342854537478950415293554557976049630165536805705773097561781380658317856988219073932595779829100811033310585108371108911341115931184512097123491260110002000300040005000

Based on OpenBenchmarking.org data, the selected test / test configuration (Smallpt 1.0 - Global Illumination Renderer; 128 Samples) 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 BenchmarkGlobal Illumination Renderer; 128 SamplesRun-Time1020304050Min: 1 / Avg: 4.01 / Max: 51

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 RunsGlobal Illumination Renderer; 128 SamplesDeviation48121620Min: 0 / Avg: 1.06 / Max: 16

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.

AMDIntelOpenBenchmarking.orgRelative Core Scaling To BaseSmallpt CPU Core ScalingGlobal Illumination Renderer; 128 Samples246810121624324864510152025

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 MOVAPD MOVUPD MOVHPD UNPCKLPD UNPCKHPD MULPD MULSD SUBPD SUBSD MOVDQA MINSD ADDSD CVTTSD2SI COMISD UCOMISD SQRTSD ADDPD DIVSD XORPD MAXSD ANDPD MOVLPD MOVDQU CVTSI2SD
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).

 
VEXTRACTF128 VZEROUPPER VINSERTF128
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).

 
VFNMADD231PD VFMSUB132SD VFMADD132SD VFMADD231SD VFMSUB231SD VFMADD132PD VFMADD213PD VFNMADD132PD VFNMADD132SD VFMSUB231PD VFMADD213SD VFMADD231PD VFNMADD231SD VFMSUB132PD
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 libm.so.6, libgomp.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)
SPARC64
sparc64
UltraSparc T5
RISC-V 64-bit
riscv64
SiFive RISC-V, rv64imafdc, rv64imafdcsu
IBM POWER (PowerPC) 64-bit
ppc64le
POWER9 4-Core, POWER9 44-Core, POWER9 8-Core, POWER9 altivec supported 44-Core
IBM POWER (PowerPC) 64-bit
ppc64
e6500
IBM POWER (PowerPC)
ppc
7447A
mips64el
ICT Loongson-3A R3
MIPS 64-bit
mips64
ICT Loongson-3A R3, Loongson-2K V0.3 FPU V0.1, Loongson-3A R3, Loongson-3A R4
MIPS
mips
Ingenic XBurst II V0.0 FPU
Loongson LoongArch 64-bit
loongarch64
ICT Loongson-3A R5, Loongson-3A5000, Loongson-3A5000-HV, Loongson-3A5000HV, Loongson-3A5000LL, Loongson-3C5000L, Loongson-3C5000LL
Intel / AMD x86 32-bit
i686
(Many Processors)
Elbrus 2000
e2k
E8C
ARMv8 64-bit
armv8l
ARMv8 rev 12 8-Core, ARMv8 rev 4 8-Core
ARMv7 32-bit
armv7l
ARMv7, ARMv7 4-Core, ARMv7 Cortex-A15, ARMv7 Cortex-A53 4-Core, ARMv7 Cortex-A7 4-Core, ARMv7 Cortex-A72 4-Core, ARMv7 Cortex-A9 4-Core, ARMv7 rev 0 4-Core, ARMv7 rev 1 4-Core, ARMv7 rev 10 2-Core, ARMv7 rev 10 4-Core, ARMv7 rev 3 4-Core, ARMv7 rev 3 8-Core, ARMv7 rev 4 4-Core, ARMv7 rev 5 4-Core
ARMv6 32-bit
armv6l
ARMv6-compatible rev 7, ARMv7
ARMv8 64-bit
aarch64
AArch64 rev 0, AArch64 rev 1, AArch64 rev 12, AArch64 rev 13, AArch64 rev 14, AArch64 rev 2, AArch64 rev 4, ARMv8, ARMv8 4-Core, ARMv8 9-Core, ARMv8 Cortex-A53 4-Core, ARMv8 Cortex-A53 8-Core, ARMv8 Cortex-A55 4-Core, ARMv8 Cortex-A57 4-Core, ARMv8 Cortex-A57 6-Core, ARMv8 Cortex-A57 8-Core, ARMv8 Cortex-A72, ARMv8 Cortex-A72 16-Core, ARMv8 Cortex-A72 2-Core, ARMv8 Cortex-A72 4-Core, ARMv8 Cortex-A72 6-Core, ARMv8 Cortex-A72 64-Core, ARMv8 Cortex-A72 8-Core, ARMv8 Cortex-A73, ARMv8 Cortex-A73 6-Core, ARMv8 Cortex-A73 8-Core, ARMv8 Cortex-A75 8-Core, ARMv8 Cortex-A77 6-Core, ARMv8 Cortex-A77 8-Core, ARMv8 Cortex-N2, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 2-Core, ARMv8 Neoverse-N1 4-Core, ARMv8 Neoverse-N1 40-Core, ARMv8 Neoverse-N1 48-Core, ARMv8 Neoverse-N1 64-Core, ARMv8 Neoverse-N1 8-Core, ARMv8 Neoverse-N1 80-Core, ARMv8 Neoverse-N2, ARMv8 Neoverse-V1, ARMv8 Neoverse-V1 16-Core, ARMv8 rev 0 2-Core, ARMv8 rev 0 6-Core, ARMv8 rev 0 8-Core, ARMv8 rev 1 4-Core, ARMv8 rev 3 4-Core, Amlogic ARMv8 Cortex-A53 4-Core, Ampere ARMv8 32-Core, Ampere eMAG ARMv8 32-Core, Apple, Apple M1, Apple M2, Cavium ThunderX, D2000, FT-2000, FT2000AHK, HUAWEI Kunpeng 920, HUAWEI Kunpeng 920 2249K, HUAWEI Kunpeng 920 5232, HUAWEI Kunpeng920 3211K, Phytium D2000, Phytium FT-1500A, Phytium FT-2000, Phytium FT2000A 4-Core, Phytium FT2000PLUS, Phytium S2500, Rockchip ARMVv8 Cortex-A72 6-Core, Rockchip ARMv8 Cortex-A53 4-Core, Rockchip ARMv8 Cortex-A55 4-Core, Rockchip ARMv8 Cortex-A72 6-Core, Rockchip ARMv8 Cortex-A76 4-Core, Rockchip ARMv8 Cortex-A76 6-Core, UNKNOWN-CPU, phytium FT1500a

Recent Test Results

OpenBenchmarking.org Results Compare

1 System - 1 Benchmark Result

Intel Core i7-10700 - TSINGHUA TONGFANG B460-N2 - Intel Device 9b43

Uos 20 - 5.10.0-amd64-desktop - Deepin Desktop Environment

1 System - 15 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDD - Huawei HiSilicon

Kylin Linux Advanced Server V10 - 4.19.90-17.ky10.aarch64 - X Server video=VGA-1:640x480-32

1 System - 14 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDD - Huawei HiSilicon

Kylin Linux Advanced Server V10 - 4.19.90-17.ky10.aarch64 - X Server video=VGA-1:640x480-32

1 System - 13 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDD - Huawei HiSilicon

Kylin Linux Advanced Server V10 - 4.19.90-17.ky10.aarch64 - X Server video=VGA-1:640x480-32

1 System - 12 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDD - Huawei HiSilicon

Kylin Linux Advanced Server V10 - 4.19.90-17.ky10.aarch64 - X Server video=VGA-1:640x480-32

1 System - 11 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDD - Huawei HiSilicon

Kylin Linux Advanced Server V10 - 4.19.90-17.ky10.aarch64 - X Server video=VGA-1:640x480-32

1 System - 6 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDD - Huawei HiSilicon

Kylin Linux Advanced Server V10 - 4.19.90-17.ky10.aarch64 - X Server video=VGA-1:640x480-32

1 System - 5 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDD - Huawei HiSilicon

Kylin Linux Advanced Server V10 - 4.19.90-17.ky10.aarch64 - X Server video=VGA-1:640x480-32

1 System - 2 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDD - Huawei HiSilicon

Kylin Linux Advanced Server V10 - 4.19.90-17.ky10.aarch64 - X Server video=VGA-1:640x480-32

1 System - 1 Benchmark Result

HUAWEI Kunpeng 920 - Huawei BC82AMDD - Huawei HiSilicon

Kylin Linux Advanced Server V10 - 4.19.90-17.ky10.aarch64 - X Server video=VGA-1:640x480-32

1 System - 1 Benchmark Result

AMD Ryzen 5 7600X 6-Core - Gigabyte B650 AORUS PRO AX - AMD Device 14d8

EndeavourOS rolling - 6.0.10-arch2-1 - Xfce 4.16

1 System - 1 Benchmark Result

Intel Core i5-2400 - Colorful And Development C.H61U - Intel 2nd Generation Core DRAM

Ubuntu 16.04 - 4.15.0-112-generic - X Server 1.19.6

1 System - 20 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDDA - Huawei HiSilicon

KylinAdvancedServer V10 - 4.19.90-25.16.v2101.ky10.aarch64 - modesetting 1.20.8

1 System - 19 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDDA - Huawei HiSilicon

KylinAdvancedServer V10 - 4.19.90-25.16.v2101.ky10.aarch64 - modesetting 1.20.8

1 System - 18 Benchmark Results

HUAWEI Kunpeng 920 - Huawei BC82AMDDA - Huawei HiSilicon

KylinAdvancedServer V10 - 4.19.90-25.16.v2101.ky10.aarch64 - modesetting 1.20.8

Most Popular Test Results

OpenBenchmarking.org Results Compare

3 Systems - 268 Benchmark Results

Intel Core i5-2520M - HP 161C - Intel 2nd Generation Core DRAM

Ubuntu 18.04 - 4.18.0-20-generic - GNOME Shell 3.28.3

11 Systems - 217 Benchmark Results

AMD Ryzen 9 3900X 12-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Starship

Ubuntu 20.04 - 5.9.0-050900-generic - GNOME Shell 3.36.4

5 Systems - 11 Benchmark Results

ARMv7 Cortex-A72 - BCM2835 Raspberry Pi 4 Model B Rev 1.2 - 4096MB

Raspbian 10 - 4.19.97-v7l+ - GCC 8.3.0

7 Systems - 28 Benchmark Results

ARMv7 rev 3 - BCM2835 Raspberry Pi 4 Model B Rev 1.1 - 2048MB

Raspbian 10 - 4.19.50-v7l+ - LXDE 0.10.0

8 Systems - 439 Benchmark Results

Intel Core i9-11900K - ASUS ROG MAXIMUS XIII HERO - Intel Tiger Lake-H

Ubuntu 21.04 - 5.12.0-051200rc3daily20210315-generic - GNOME Shell 3.38.3

4 Systems - 131 Benchmark Results

Intel Xeon E-2278GEL - Logic Supply RXM-181 TBD by OEM - Intel

FreeBSD - 12.2-RELEASE - Clang 10.0.1

2 Systems - 59 Benchmark Results

AMD Ryzen 7 3700X 8-Core - MSI MEG X570 GODLIKE - AMD Device 1480

Clear Linux OS 31480 - 5.3.8-854.native - GNOME Shell 3.34.1

12 Systems - 229 Benchmark Results

Intel Core i9-10900K - Gigabyte Z490 AORUS MASTER - Intel Comet Lake PCH

Ubuntu 20.04 - 5.9.0-050900-generic - GNOME Shell 3.36.4

3 Systems - 143 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 m6g.metal v1.0 - 252GB

Ubuntu 20.04 - 5.4.0-1009-aws - GCC 9.3.0

8 Systems - 62 Benchmark Results

AMD EPYC 7351P 16-Core - ASRockRack EPYCD8-2T - AMD Family 17h

Clear Linux OS 27910 - 4.20.10-699.native - GNOME Shell 3.30.2

8 Systems - 28 Benchmark Results

ARMv7 rev 3 - BCM2835 Raspberry Pi 4 Model B Rev 1.1 - 2048MB

Raspbian 10 - 4.19.50-v7l+ - LXDE 0.10.0

2 Systems - 150 Benchmark Results

Intel Core i7-1065G7 - Dell 06CDVY - Intel Device 34ef

Ubuntu 20.04 - 5.7.0-999-generic - GNOME Shell 3.36.1

Find More Test Results