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.0450K100K150K200K250K
* 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 16 June 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,375 public results since 7 December 2018 with the latest data as of 23 June 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
75th
12
11 +/- 1
71st
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
53rd
7
25 +/- 3
52nd
3
26 +/- 3
Median
50th
27
50th
8
27 +/- 2
50th
10
27 +/- 3
49th
12
27 +/- 1
49th
5
27 +/- 1
49th
4
28 +/- 2
48th
3
28 +/- 3
47th
3
30 +/- 1
47th
3
30 +/- 2
46th
10
30 +/- 2
46th
3
31 +/- 3
46th
6
31 +/- 4
44th
18
33 +/- 2
44th
3
33 +/- 4
43rd
8
34 +/- 2
43rd
3
34 +/- 4
43rd
9
35 +/- 1
43rd
4
35 +/- 4
43rd
3
35 +/- 2
42nd
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
37th
10
40 +/- 5
37th
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
7
67 +/- 2
28th
4
67 +/- 9
27th
16
69 +/- 3
26th
3
71 +/- 2
26th
5
73 +/- 7
Low-Tier
25th
> 73
25th
11
74 +/- 9
25th
8
75 +/- 2
25th
7
75 +/- 5
25th
3
76 +/- 2
24th
4
77 +/- 1
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
4
85 +/- 6
22nd
17
85 +/- 4
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 Samples6350 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.03 / Max: 51

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.01 / 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
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-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 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, 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

10 Systems - 42 Benchmark Results

rv64imafdcvsu - T-HEAD Light Lichee Pi 4A configuration for LicheeConsole4A - 16GB

Debian 12 - 5.10.113-sipeed-20240312+ - Xfce

1 System - 1 Benchmark Result

Intel Core i9-12900K - ASUS ROG STRIX Z690-E GAMING WIFI - 2 x 16384 MB 5200MHz Kingston KF548C38-16

Microsoft Windows 11 Pro Build 22631 - 10.0.22631.3737 - 555.99

1 System - 68 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 i4g.16xlarge - Amazon Device 0200

Amazon Linux 2 - 5.10.218-208.862.amzn2.aarch64 - GCC 7.3.1 20180712

1 System - 62 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 i4g.16xlarge - Amazon Device 0200

Amazon Linux 2 - 5.10.218-208.862.amzn2.aarch64 - GCC 7.3.1 20180712

1 System - 59 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 i4g.16xlarge - Amazon Device 0200

Amazon Linux 2 - 5.10.218-208.862.amzn2.aarch64 - GCC 7.3.1 20180712

1 System - 1 Benchmark Result

Intel Xeon E5-2699 v3 - MACHINIST X99 PR9 - Intel Xeon E7 v3

Fedora Linux 40 - 6.9.4-200.fc40.x86_64 - GNOME Shell 46.2

1 System - 1 Benchmark Result

Intel Core i5-10210U - Dell 02FGH4 - Intel Comet Lake PCH-LP

Ubuntu 23.10 - 6.5.0-27-generic - Xfce 4.18

9 Systems - 42 Benchmark Results

Unknown - Yytek 301-0059 - Loongson LLC Hyper Transport Bridge

Gentoo 2.15 - 6.9.1-loongarch - KDE Plasma 5.27.11

2 Systems - 21 Benchmark Results

AMD Phenom II X4 945 - Gigabyte GA-MA78GM-S2H - 6144MB

Calculate Linux Desktop 11.15 GNOME - 3.3.3-calculate - GNOME Shell 3.2.2.1

1 System - 68 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 i4g.4xlarge - Amazon Device 0200

Amazon Linux 2 - 5.10.218-208.862.amzn2.aarch64 - GCC 7.3.1 20180712

1 System - 62 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 i4g.4xlarge - Amazon Device 0200

Amazon Linux 2 - 5.10.218-208.862.amzn2.aarch64 - GCC 7.3.1 20180712

1 System - 59 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 i4g.4xlarge - Amazon Device 0200

Amazon Linux 2 - 5.10.218-208.862.amzn2.aarch64 - GCC 7.3.1 20180712

1 System - 68 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 i4g.8xlarge - Amazon Device 0200

Amazon Linux 2 - 5.10.218-208.862.amzn2.aarch64 - GCC 7.3.1 20180712

1 System - 62 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 i4g.8xlarge - Amazon Device 0200

Amazon Linux 2 - 5.10.218-208.862.amzn2.aarch64 - GCC 7.3.1 20180712

1 System - 59 Benchmark Results

ARMv8 Neoverse-N1 - Amazon EC2 i4g.8xlarge - Amazon Device 0200

Amazon Linux 2 - 5.10.218-208.862.amzn2.aarch64 - GCC 7.3.1 20180712

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 3 - BCM2835 Raspberry Pi 4 Model B Rev 1.1 - 4096MB

Raspbian 10 - 4.19.50-v7l+ - LXDE 0.10.0

11 Systems - 217 Benchmark Results

AMD Ryzen 5 2600X Six-Core - ASUS ROG CROSSHAIR VIII HERO - AMD 17h

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

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 - 50 Benchmark Results

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

Debian 11 - 5.10.92-v8+ - LXDE

4 Systems - 131 Benchmark Results

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

FreeBSD - 13.0-BETA1 - Clang 11.0.1

8 Systems - 439 Benchmark Results

Intel Core i5-11600K - ASUS ROG MAXIMUS XIII HERO - Intel Device 43ef

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

5 Systems - 11 Benchmark Results

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

Raspbian 10 - 5.4.32-v7l+ - GCC 8.3.0

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

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

8 Systems - 62 Benchmark Results

AMD EPYC 7351P 16-Core - ASRockRack EPYCD8-2T - AMD Device 1450

Debian 9.8 - 4.9.0-8-amd64 - GNOME Shell 3.22.3

12 Systems - 229 Benchmark Results

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