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

4 Seconds

Average Run Time

1 Hour, 12 Minutes, 3 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.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 21 September 2021.

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 3,951 public results since 7 December 2018 with the latest data as of 25 September 2021.

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)
Mid-Tier
75th
> 10
74th
6
11 +/- 1
74th
12
11 +/- 1
65th
3
15 +/- 2
60th
3
18 +/- 2
60th
4
19 +/- 2
56th
3
22 +/- 1
55th
3
23 +/- 1
55th
6
23 +/- 2
53rd
7
25 +/- 3
52nd
3
26 +/- 3
52nd
8
26 +/- 1
Median
50th
27
50th
8
27 +/- 1
49th
4
28 +/- 3
49th
4
28 +/- 2
49th
3
28 +/- 3
47th
3
30 +/- 2
47th
10
30 +/- 2
44th
16
32 +/- 1
43rd
3
34 +/- 5
41st
4
37 +/- 3
40th
6
37 +/- 1
40th
4
38 +/- 3
39th
13
38 +/- 2
39th
10
38 +/- 5
39th
3
39 +/- 3
38th
5
39 +/- 3
38th
14
39 +/- 2
37th
7
41 +/- 4
37th
15
42 +/- 2
35th
5
44 +/- 1
32nd
9
52 +/- 2
28th
8
67 +/- 2
28th
4
67 +/- 9
28th
6
67 +/- 2
26th
3
74 +/- 9
26th
3
75 +/- 4
Low-Tier
25th
> 77
25th
3
78 +/- 7
25th
6
80 +/- 7
25th
11
80 +/- 3
24th
3
81 +/- 12
24th
10
83 +/- 4
24th
3
83 +/- 6
23rd
3
84 +/- 1
23rd
4
85 +/- 6
23rd
9
87 +/- 1
21st
4
91 +/- 3
20th
5
95 +/- 10
19th
9
102 +/- 6
19th
4
103 +/- 9
9th
6
185 +/- 7
8th
3
196 +/- 13
7th
11
203 +/- 2
6th
3
231 +/- 10
5th
8
233 +/- 4
3rd
4
340 +/- 1
1st
3
1954 +/- 11
OpenBenchmarking.orgDistribution Of Public Results - Global Illumination Renderer; 128 Samples3942 Results Range From 1 To 12580 Seconds125350575710091261151317652017226925212773302532773529378140334285453747895041529355455797604963016553680570577309756178138065831785698821907393259577982910081103331058510837110891134111593118451209712349126018001600240032004000

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.62 / Max: 48

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.07 / 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 Samples24681012162032486448121620

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.
 
MOVAPD MOVUPD MULSD SUBSD MULPD PUNPCKLQDQ MINSD ADDSD CVTTSD2SI COMISD UCOMISD SQRTSD DIVSD XORPD MAXSD MOVHPD UNPCKLPD ANDPD ADDPD MOVDQU CVTSI2SD
Requires passing a supported compiler/build flag (verified with targets: sandybridge, skylake, tigerlake, cascadelake, 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, znver2, znver3).
Found on Intel processors since Haswell (2013).
Found on AMD processors since Bulldozer (2011).

 
VFMSUB132SD VFNMADD231SD VFMADD132SD VFMADD231SD VFMSUB231SD VFMADD213SD VFNMADD132SD VFMADD213PD VFMADD132PD
The test / benchmark does honor compiler flag changes.
Last automated analysis: 10 May 2021

This test profile binary relies on the shared libraries libm.so.6, libgomp.so.1, libc.so.6, libdl.so.2, libpthread.so.0.

Recent Test Results

OpenBenchmarking.org Results Compare

1 System - 86 Benchmark Results

AMD Ryzen 9 5900X 12-Core - ASRock X570 PG Velocita - AMD Starship

Pop 21.04 - 5.11.0-7620-generic - GNOME Shell 3.38.4

1 System - 86 Benchmark Results

AMD Ryzen 9 5900X 12-Core - ASRock X570 PG Velocita - AMD Starship

Pop 21.04 - 5.11.0-7620-generic - GNOME Shell 3.38.4

1 System - 56 Benchmark Results

ARMv8 Cortex-A72 - BCM2835 Raspberry Pi 400 Rev 1.0 - 4096MB

Debian 10 - 5.4.51-v8+ - LXDE 0.10.0

3 Systems - 70 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

3 Systems - 60 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

1 System - 1 Benchmark Result

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

Arch rolling - 5.14.6-arch1-1 - X Server 1.20.13

2 Systems - 108 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

2 Systems - 96 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

3 Systems - 59 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

2 Systems - 67 Benchmark Results

SiFive RISC-V - SiFive HiFive Unmatched A00 - 16GB

Ubuntu 21.04 - 5.11.0-1018-generic - GCC 10.3.0

3 Systems - 58 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

2 Systems - 95 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

3 Systems - 45 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

2 Systems - 63 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

3 Systems - 41 Benchmark Results

ARMv8 rev 0 - e3360_1099 - 32GB

Ubuntu 20.04 - 5.10.41-tegra - X Server

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

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

8 Systems - 360 Benchmark Results

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

Ubuntu 19.10 - 5.4.0-999-generic - GNOME Shell 3.34.1

3 Systems - 301 Benchmark Results

Intel Core i5-10600K - ASUS PRIME Z490M-PLUS - Intel Comet Lake PCH

Ubuntu 20.04 - 5.4.0-40-generic - GNOME Shell 3.36.3

2 Systems - 150 Benchmark Results

AMD Ryzen 7 4700U - LENOVO LNVNB161216 - AMD Renoir Root Complex

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

2 Systems - 9 Benchmark Results

AMD Ryzen Threadripper 2950X 16-Core - Gigabyte X399 AORUS XTREME-CF - AMD Family 17h

Ubuntu 19.10 - 5.4.8-20.01.06.amdgpu.ubuntu - Xfce 4.14

7 Systems - 28 Benchmark Results

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

Raspbian 10 - 5.10.11-v7l+ - X Server 1.20.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

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

12 Systems - 229 Benchmark Results

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

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

2 Systems - 1708 Benchmark Results

AMD Ryzen 3 3300X 4-Core - ASRock X570 Pro4 - AMD Starship

Ubuntu 20.04 - 5.7.0-rc6-amd-energy - GNOME Shell 3.36.2

Find More Test Results