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

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: 3.95 / Max: 49

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.04 / 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, Spacemit X60, rv64imafdc, rv64imafdc_zicntr_zicsr_zifencei_zihpm, rv64imafdcsu, rv64imafdcv, 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, Loongson-3D5000
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 8-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-A55 8-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 256-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 Neoverse-V2, 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 FT-E2000, Phytium FT2000A 4-Core, Phytium FT2000PLUS, Phytium S2500, Qualcomm, 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

2 Systems - 1 Benchmark Result

Intel Core i5-8350U - LENOVO ThinkPad T480 20L6SA5Q00 - Intel Xeon E3-1200 v6

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

1 System - 1 Benchmark Result

Intel Core i5-8350U - LENOVO ThinkPad T480 20L6SA5Q00 - Intel Xeon E3-1200 v6

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

1 System - 1 Benchmark Result

Apple - linux dummy-virt - 2048MB

Ubuntu 20.04 - 5.4.0-200-generic - 1.1.182

1 System - 1 Benchmark Result

Intel Core i5-1038NG7 - Oracle VirtualBox v1.2 - Intel 440FX 82441FX PMC

Ubuntu 20.04 - 5.4.0-196-generic - GCC 9.4.0

1 System - 1 Benchmark Result

AMD Ryzen 5 3500U - Oracle VirtualBox v1.2 - Intel 440FX 82441FX PMC

Ubuntu 20.04 - 5.4.0-200-generic - GCC 9.4.0

1 System - 1 Benchmark Result

AMD Ryzen 5 3500U - Oracle VirtualBox v1.2 - Intel 440FX 82441FX PMC

Ubuntu 20.04 - 5.4.0-200-generic - GCC 9.4.0

1 System - 1 Benchmark Result

AMD Ryzen 5 3500U - Oracle VirtualBox v1.2 - 4096MB

Rocky Linux 9.5 - 5.14.0-503.15.1.el9_5.x86_64 - GCC 11.5.0 20240719

1 System - 1 Benchmark Result

Intel Xeon E5-2609 0 - QEMU Standard PC - Intel 440FX 82441FX PMC

Debian 12 - 6.1.0-28-amd64 - Xfce 4.18

3 Systems - 27 Benchmark Results

AMD Ryzen 7 3800X 8-Core - ASUS TUF GAMING X570-PLUS_BR - AMD Starship

Linuxmint 22 - 6.8.0-49-generic - Cinnamon 6.2.9

3 Systems - 27 Benchmark Results

AMD Ryzen 7 3800X 8-Core - ASUS TUF GAMING X570-PLUS_BR - AMD Starship

Linuxmint 22 - 6.8.0-49-generic - Cinnamon 6.2.9

1 System - 1 Benchmark Result

Intel Core i7-12650H - Oracle VirtualBox v1.2 - Intel 440FX 82441FX PMC

Ubuntu 20.04 - 5.4.0-196-generic - 1.1.182

3 Systems - 7 Benchmark Results

AMD Ryzen 7 3800X 8-Core - ASUS TUF GAMING X570-PLUS_BR - AMD Starship

Linuxmint 22 - 6.8.0-49-generic - Cinnamon 6.2.9

1 System - 1 Benchmark Result

12th Gen Intel Core i7-12700H - Oracle VirtualBox v1.2 - Intel 440FX 82441FX PMC

Ubuntu 20.04 - 5.4.0-200-generic - GCC 9.4.0

1 System - 3 Benchmark Results

AMD Ryzen 9 9950X 16-Core - ASUS TUF GAMING B650-E WIFI - AMD Device 14d8

Ubuntu 24.10 - 6.11.0-9-generic - KDE Plasma 6.1.5

1 System - 2 Benchmark Results

AMD Ryzen 9 9950X 16-Core - ASUS TUF GAMING B650-E WIFI - AMD Device 14d8

Ubuntu 24.10 - 6.11.0-9-generic - KDE Plasma 6.1.5

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

8 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

2 Systems - 50 Benchmark Results

ARMv8 Cortex-A72 - BCM2835 Raspberry Pi 400 Rev 1.0 - Broadcom BCM2711

Debian 11 - 5.10.92-v8+ - LXDE

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

4 Systems - 131 Benchmark Results

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

FreeBSD - 12.2-RELEASE - Clang 10.0.1

8 Systems - 439 Benchmark Results

AMD Ryzen 5 5600X 6-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

AMD EPYC 7742 64-Core - AMD DAYTONA_X - AMD Starship

Ubuntu 20.04 - 5.4.0-31-generic - GNOME Shell 3.36.1

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

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

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

5 Systems - 64 Benchmark Results

AMD Ryzen Threadripper 1920X 12-Core - ASRock X399M Taichi - AMD 17h

Ubuntu 20.04 - 5.4.0-56-generic - Xfce 4.14

Find More Test Results