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

2 Minutes, 7 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.052011.102012.032012.082013.012013.062013.112014.042014.092015.022015.072015.122016.052016.102017.032017.082018.012018.062018.112019.042019.092020.022020.072020.122021.052021.102022.032022.082023.012023.062023.1150K100K150K200K250K
* 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 17 March 2024.

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 6,169 public results since 7 December 2018 with the latest data as of 19 March 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)
79th
9
9 +/- 1
78th
10
10 +/- 1
76th
7
11 +/- 1
Mid-Tier
75th
> 11
75th
12
11 +/- 1
72nd
7
12 +/- 1
68th
7
14 +/- 1
66th
8
15 +/- 1
63rd
5
16 +/- 1
60th
4
19 +/- 2
59th
6
19 +/- 2
57th
3
22 +/- 1
56th
3
23 +/- 1
56th
6
23 +/- 2
55th
3
23 +/- 3
54th
7
25 +/- 3
53rd
3
26 +/- 3
Median
50th
27
50th
7
27 +/- 2
50th
10
27 +/- 3
50th
12
27 +/- 1
49th
4
28 +/- 2
49th
3
28 +/- 3
48th
3
30 +/- 1
47th
3
30 +/- 2
47th
10
30 +/- 2
47th
3
31 +/- 3
46th
6
31 +/- 4
45th
18
33 +/- 2
44th
3
33 +/- 4
44th
8
34 +/- 2
44th
3
34 +/- 4
43rd
9
35 +/- 1
43rd
4
35 +/- 4
43rd
3
35 +/- 2
43rd
6
35 +/- 4
42nd
12
35 +/- 1
41st
4
37 +/- 3
40th
9
37 +/- 1
40th
4
38 +/- 3
39th
13
38 +/- 2
39th
10
38 +/- 5
39th
4
39 +/- 1
38th
14
39 +/- 2
38th
12
40 +/- 4
38th
10
40 +/- 5
38th
4
40 +/- 4
37th
6
41 +/- 5
37th
14
41 +/- 4
37th
3
41 +/- 5
37th
3
42 +/- 5
37th
15
42 +/- 2
35th
5
44 +/- 1
32nd
10
52 +/- 2
29th
4
61 +/- 5
28th
4
67 +/- 9
28th
7
67 +/- 2
27th
16
69 +/- 3
26th
3
71 +/- 2
26th
5
73 +/- 7
Low-Tier
25th
> 74
25th
11
74 +/- 9
25th
8
75 +/- 2
25th
7
75 +/- 5
25th
3
76 +/- 2
24th
21
77 +/- 8
24th
3
78 +/- 7
24th
3
80 +/- 1
24th
6
80 +/- 7
23rd
3
81 +/- 12
23rd
11
82 +/- 4
23rd
4
82 +/- 9
22nd
3
84 +/- 1
22nd
17
85 +/- 4
22nd
4
85 +/- 6
22nd
9
87 +/- 1
21st
4
91 +/- 3
18th
9
102 +/- 6
18th
4
103 +/- 9
16th
3
114 +/- 4
12th
5
135 +/- 15
8th
6
185 +/- 7
7th
3
196 +/- 13
7th
11
203 +/- 2
5th
3
231 +/- 10
5th
10
233 +/- 3
3rd
4
340 +/- 1
1st
3
1954 +/- 11
OpenBenchmarking.orgDistribution Of Public Results - Global Illumination Renderer; 128 Samples6158 Results Range From 1 To 12580 Seconds1253505757100912611513176520172269252127733025327735293781403342854537478950415293554557976049630165536805705773097561781380658317856988219073932595779829100811033310585108371108911341115931184512097123491260113002600390052006500

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.06 / Max: 52

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

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsGlobal Illumination Renderer; 128 SamplesDeviation48121620Min: 0 / Avg: 1.03 / Max: 15

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 Samples24681012161824324864510152025

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)
sw_64
2 x SW3231, SW831
SPARC64
sparc64
UltraSparc T5
RISC-V 64-bit
riscv64
SiFive RISC-V, rv64imafdc, rv64imafdc_zicntr_zicsr_zifencei_zihpm, rv64imafdcsu, rv64imafdcvsu
IBM POWER (PowerPC) 64-bit
ppc64le
POWER8E, POWER9 4-Core, POWER9 44-Core, POWER9 8-Core, POWER9 altivec supported 44-Core
IBM POWER (PowerPC) 64-bit
ppc64
PPC970, 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-3A5000-HV-7A2000-1w-EVB-V1.0, Loongson-3A5000HV, Loongson-3A5000LL, Loongson-3A6000, Loongson-3A6000-HV, Loongson-3C5000, Loongson-3C5000L, Loongson-3C5000LL
Intel / AMD x86 32-bit
i686
(Many Processors)
Elbrus 2000
e2k
E8C
ARMv8 64-bit
armv8l
ARMv8 Cortex-A53 8-Core, ARMv8 rev 12 8-Core, ARMv8 rev 4 8-Core
ARMv7 32-bit
armv7l
ARMv7, ARMv7 4-Core, ARMv7 Cortex-A15, ARMv7 Cortex-A15 4-Core, ARMv7 Cortex-A15 8-Core, ARMv7 Cortex-A53 4-Core, ARMv7 Cortex-A7 2-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
arm64
Apple M1 Pro
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, ARM, ARMv8, ARMv8 2-Core, ARMv8 4-Core, ARMv8 9-Core, ARMv8 Cortex-A53 2-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 2-Core, ARMv8 Cortex-A73 4-Core, ARMv8 Cortex-A73 6-Core, ARMv8 Cortex-A73 8-Core, ARMv8 Cortex-A75 6-Core, ARMv8 Cortex-A75 8-Core, ARMv8 Cortex-A76, ARMv8 Cortex-A76 4-Core, ARMv8 Cortex-A76 6-Core, ARMv8 Cortex-A77 6-Core, ARMv8 Cortex-A77 8-Core, ARMv8 Cortex-A78 4-Core, ARMv8 Cortex-A78E 12-Core, ARMv8 Cortex-A78E 6-Core, ARMv8 Cortex-N2, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 128-Core, 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-N2 4-Core, ARMv8 Neoverse-V1, ARMv8 Neoverse-V1 16-Core, ARMv8 Neoverse-V1 64-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, Cavium ThunderX ARMv8 Neoverse-N2 24-Core, D2000, FT-2000, FT2000AHK, HUAWEI Kunpeng 920, HUAWEI Kunpeng 920 2249K, HUAWEI Kunpeng 920 5232, HUAWEI Kunpeng920 3211K, HiSilicon TSV110, Intel Xeon E5-2682 v4, Phytium D2000, Phytium FT-1500A, Phytium FT-2000, Phytium FT2000A 4-Core, Phytium FT2000PLUS, Phytium S2500, Rockchip ARMVv8 Cortex-A72 6-Core, Rockchip ARMv8 4-Core, Rockchip ARMv8 Cortex-A53 4-Core, Rockchip ARMv8 Cortex-A55 4-Core, Rockchip ARMv8 Cortex-A72 6-Core, Rockchip ARMv8 Cortex-A76, Rockchip ARMv8 Cortex-A76 4-Core, Rockchip ARMv8 Cortex-A76 6-Core, Rockchip ARMv8 Cortex-A76 8-Core, UNKNOWN-CPU, phytium FT1500a, virt-4.1

Recent Test Results

OpenBenchmarking.org Results Compare

1 System - 85 Benchmark Results

AMD Ryzen 5 7600X 6-Core - ASRock B650 PG Lightning - AMD Device 14d8

EndeavourOS rolling - 6.7.9-arch1-1 - KDE Plasma 6.0.2

1 System - 1 Benchmark Result

ARMv8 Cortex-A76 - Raspberry Pi 5 Model B Rev 1.0 - 8GB

Debian 12 - 6.6.20+rpt-rpi-2712 - X Server

1 System - 1 Benchmark Result

Intel Pentium N3700 - AMI Aptio CRB - Intel Atom

Debian 12 - 6.1.0-18-amd64 - GCC 12.2.0

1 System - 1 Benchmark Result

Loongson-3A6000-HV - Loongson XC-LS3A6M - Loongson LLC Hyper Transport Bridge

Loongnix 20 - 4.19.0-19-loongson-3 - X Server 1.20.4

1 System - 1 Benchmark Result

Loongson-3A6000-HV - Loongson XC-LS3A6M - Loongson LLC Hyper Transport Bridge

Loongnix 20 - 4.19.0-19-loongson-3 - X Server 1.20.4

1 System - 1 Benchmark Result

Loongson-3A6000-HV - Loongson XC-LS3A6M - Loongson LLC Hyper Transport Bridge

Loongnix 20 - 4.19.0-19-loongson-3 - X Server 1.20.4

1 System - 1 Benchmark Result

Loongson-3A6000-HV - Loongson XC-LS3A6M - Loongson LLC Hyper Transport Bridge

Loongnix 20 - 4.19.0-19-loongson-3 - X Server 1.20.4

1 System - 1 Benchmark Result

Phytium D2000/8 E8C - GreatWall GW-001M1A-FTF v1.0 - 16GB

Uos 20 - 4.19.0-arm64-desktop - Deepin Desktop Environment

2 Systems - 11 Benchmark Results

Intel Core i7-4600U - American Megatrends 5.6.5 - Intel Haswell-ULT DRAM

Ubuntu 22.04 - 6.5.0-21-generic - GNOME Shell 42.9

1 System - 85 Benchmark Results

Intel Core i7-9850H - HP 860F - Intel Cannon Lake PCH

ManjaroLinux 23.1.3 - 6.7.9-lqx1-1-lqx - KDE Plasma 5.27.10

1 System - 1 Benchmark Result

Intel Core i7-13700KF - 16GB - 0GB Virtual Disk + 4GB Virtual Disk + 2 x 1100GB Virtual Disk

Ubuntu 22.04 - 5.15.146.1-microsoft-standard-WSL2 - Wayland

1 System - 1 Benchmark Result

Intel Core i7-4600U - American Megatrends 5.6.5 - Intel Haswell-ULT DRAM

Ubuntu 22.04 - 6.5.0-21-generic - GNOME Shell 42.9

1 System - 1 Benchmark Result

AMD Ryzen 7 PRO 5850U - LENOVO 21A00071GE - AMD Renoir

Fedora Linux 39 - 6.7.4-200.fc39.x86_64 - GNOME Shell 45.4

1 System - 1 Benchmark Result

AMD Ryzen 7 PRO 5850U - LENOVO 21A00071GE - AMD Renoir

Fedora Linux 39 - 6.7.4-200.fc39.x86_64 - GNOME Shell 45.4

1 System - 1 Benchmark Result

ARMv8 Cortex-A53 - MT6762G - 4096MB

Debian 12 - 4.19.127-perf-gbb0f387b2ec1 - X Server 1.21.1.7

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

7 Systems - 28 Benchmark Results

ARMv8 Cortex-A53 - Libre Board ALL-H3-CC H5 - 2048MB

Raspbian 9.6 - 4.18.0-rc3-gfc36def997cf-dirty - X Server 1.19.2

11 Systems - 217 Benchmark Results

AMD Ryzen 9 3950X 16-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Starship

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

2 Systems - 50 Benchmark Results

ARMv7 Cortex-A72 - BCM2711 Raspberry Pi 400 Rev 1.0 - Broadcom BCM2711

Raspbian 11 - 5.10.92-v7l+ - LXDE

5 Systems - 11 Benchmark Results

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

Ubuntu 19.10 - 5.3.0-1022-raspi2 - GCC 9.2.1 20191008

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

4 Systems - 131 Benchmark Results

Intel Core i7-10700T - Insyde CometLake TBD by OEM - Intel

FreeBSD - 13.0-BETA1 - Clang 11.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

8 Systems - 62 Benchmark Results

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

Fedora 29 - 4.20.8-200.fc29.x86_64 - GNOME Shell 3.30.2

8 Systems - 439 Benchmark Results

AMD Ryzen 9 5950X 16-Core - ASUS ROG CROSSHAIR VIII HERO - AMD Starship

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

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

12 Systems - 229 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

Find More Test Results