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 9 November 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,681 public results since 7 December 2018 with the latest data as of 9 November 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)
78th
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
9
15 +/- 2
63rd
5
16 +/- 1
60th
4
19 +/- 2
59th
6
19 +/- 2
58th
3
20 +/- 2
57th
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
41st
12
35 +/- 1
40th
11
37 +/- 1
40th
4
37 +/- 3
39th
4
38 +/- 3
39th
13
38 +/- 2
39th
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
7
75 +/- 5
25th
8
75 +/- 2
24th
3
76 +/- 2
24th
21
77 +/- 8
24th
3
78 +/- 7
23rd
6
80 +/- 7
23rd
3
80 +/- 1
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
OpenBenchmarking.orgDistribution Of Public Results - Global Illumination Renderer; 128 Samples6677 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: 50

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, 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 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

1 System - 1 Benchmark Result

AMD Ryzen 9 7940HS - Shenzhen Meigao Electronic Equipment F7BSC - AMD Device 14e8

EndeavourOS rolling - 6.6.59-1-lts - KDE Plasma 6.2.2

1 System - 10 Benchmark Results

Intel Core i7-4790 - 8GB - 50GB

Debian 12 - 6.6.54-1.qubes.fc37.x86_64 - Xfce 4.18

1 System - 1 Benchmark Result

AMD Ryzen 5 2600 Six-Core - MSI B450 GAMING PLUS MAX - AMD 17h

Linuxmint 21 - 5.15.0-67-generic - Cinnamon 5.4.12

1 System - 1 Benchmark Result

AMD Ryzen 5 1600 Six-Core - ASUS PRIME B350-PLUS - AMD 17h

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

1 System - 1 Benchmark Result

Intel Core i7-6700K - ASRock Z170 Extreme6+ - 62GB

NixOS 24.05 - 6.6.48 - X Server

1 System - 1 Benchmark Result

AMD Ryzen 7 2700X Eight-Core - Gigabyte B450M S2H - AMD 17h

Linuxmint 21.3 - 6.8.0-47-generic - Cinnamon 6.0.4

2 Systems - 5 Benchmark Results

HUAWEI Kunpeng 920 - RDO OpenStack Compute - Red Hat QEMU PCIe

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

1 System - 1 Benchmark Result

Intel Core i7-3770 - FUJITSU ESPRIMO P910 D3162-A1 - Intel Xeon E3-1200 v2

Debian 12 - 6.1.0-26-amd64 - Openbox 3.6.1

1 System - 1 Benchmark Result

Intel Core i5-9500T - HP EliteDesk 800 G5 Desktop Mini 8595 - Intel Cannon Lake PCH

Debian 12 - 6.1.0-26-amd64 - GCC 12.2.0

1 System - 1 Benchmark Result

Rockchip ARMv8 Cortex-A76 - Rockchip RK3588 EVB7 V11 Board - 16GB

Ubuntu 24.04 - 5.10.160-g5eede0be5c39-svn2239-dirty - Xfce

1 System - 8 Benchmark Results

8 x AMD EPYC-Rome - Optimized Hosting KVM v0.36.18 - Intel 82G33

Ubuntu 24.04 - 6.8.0-39-generic - GCC 13.2.0

1 System - 9 Benchmark Results

8 x AMD EPYC-Rome - Optimized Hosting KVM v0.36.18 - Intel 82G33

Ubuntu 24.04 - 6.8.0-39-generic - GCC 13.2.0

1 System - 1 Benchmark Result

Intel Core i7-3770 - ASUS P8Z77-V LX - Intel Xeon E3-1200 v2

Oracle Linux Server 9.4 - 5.15.0-301.163.5.2.el9uek.x86_64 - xfs

1 System - 14 Benchmark Results

8 x AMD EPYC-Rome - Optimized Hosting KVM v0.36.18 - Intel 82G33

Ubuntu 24.04 - 6.8.0-39-generic - GCC 13.2.0

1 System - 1 Benchmark Result

Rockchip ARMv8 Cortex-A76 - Rockchip RK3588 EVB7 V11 Board - 16GB

Ubuntu 24.04 - 5.10.160-g5eede0be5c39-svn2239-dirty - Xfce

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

ARMv7 rev 4 - BCM2835 Raspberry Pi 3 Model B Plus Rev 1.3 - 926MB

Raspbian 10 - 4.19.42-v7+ - X Server 1.20.4

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

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

4 Systems - 131 Benchmark Results

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

FreeBSD - 13.0-BETA1 - Clang 11.0.1

8 Systems - 439 Benchmark Results

Intel Core i5-10600K - Gigabyte Z490 AORUS MASTER - Intel Comet Lake PCH

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

5 Systems - 11 Benchmark Results

AMD G-T56N - HP 17E2 - AMD 14h Root Complex

Ubuntu 20.04 - 5.4.0-42-generic - GCC 9.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 31470 - 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