N-Queens

This is a test of the OpenMP version of a test that solves the N-queens problem. The board problem size is 18.

To run this test with the Phoronix Test Suite, the basic command is: phoronix-test-suite benchmark n-queens.

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

5 Minutes, 18 Seconds

Test Dependencies

C/C++ Compiler Toolchain

Accolades

150k+ Downloads

Supported Platforms


Public Result Uploads *Reported Test Completions **Reported Installs **Test Profile Page Views ***OpenBenchmarking.orgEventsN-Queens Popularity Statisticspts/n-queens2010.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.082021.122022.042022.0811K22K33K44K55K
* 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 30 September 2022.

Revision History

pts/n-queens-1.2.1   [View Source]   Fri, 11 Oct 2019 11:15:32 GMT
Enable Windows support.

pts/n-queens-1.2.0   [View Source]   Thu, 25 Aug 2016 13:50:26 GMT
Update CFLAGS handling, update download links

pts/n-queens-1.1.0   [View Source]   Wed, 23 Jan 2013 11:48:38 GMT
Ensure OpenMP flag is passed to the C compiler.

pts/n-queens-1.0.0   [View Source]   Mon, 06 Dec 2010 15:00:36 GMT
Initial import into OpenBenchmarking.org

Suites Using This Test

Chess Test Suite

Multi-Core


Performance Metrics

Analyze Test Configuration:

N-Queens 1.0

Elapsed Time

OpenBenchmarking.org metrics for this test profile configuration based on 1,909 public results since 25 August 2016 with the latest data as of 26 September 2022.

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
> 6
58th
22
10 +/- 1
53rd
6
12 +/- 1
Median
50th
13
46th
13
14 +/- 1
35th
5
19 +/- 1
34th
4
20 +/- 1
33rd
15
21 +/- 2
33rd
3
21 +/- 1
29th
14
26 +/- 1
29th
10
29 +/- 2
28th
3
29 +/- 1
27th
3
31 +/- 2
26th
3
31 +/- 1
Low-Tier
25th
> 33
25th
5
33 +/- 1
25th
7
33 +/- 2
25th
6
34 +/- 3
24th
3
35 +/- 2
23rd
4
36 +/- 1
23rd
3
38 +/- 4
21st
15
44 +/- 2
18th
4
50 +/- 3
18th
6
51 +/- 6
18th
3
51 +/- 1
18th
5
52 +/- 5
17th
5
55 +/- 1
15th
5
59 +/- 3
14th
15
63 +/- 8
13th
3
69 +/- 4
12th
5
80 +/- 1
9th
4
95 +/- 10
9th
4
102 +/- 11
4th
6
201 +/- 14
2nd
10
258 +/- 10
OpenBenchmarking.orgDistribution Of Public Results - Elapsed Time1909 Results Range From 0 To 13286 Seconds266532798106413301596186221282394266029263192345837243990425645224788505453205586585261186384665069167182744877147980824685128778904493109576984210108103741064010906111721143811704119701223612502127681303413300400800120016002000

Based on OpenBenchmarking.org data, the selected test / test configuration (N-Queens 1.0 - Elapsed Time) has an average run-time of 2 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 BenchmarkElapsed TimeRun-Time3691215Min: 1 / Avg: 1.53 / Max: 11

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

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsElapsed TimeDeviation246810Min: 0 / Avg: 0.24 / Max: 5

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.

IntelAMDOpenBenchmarking.orgRelative Core Scaling To BaseN-Queens CPU Core ScalingElapsed Time246810121620243248566496128918273645

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.
 
MOVDQU ADDSD CVTTSD2SI MOVDQA PUNPCKLQDQ PADDQ PUNPCKHQDQ PSUBQ MOVLPD MOVHPD PSLLDQ PSRLDQ MOVD PSHUFD MOVNTDQ MOVAPD MULSD XORPD SHUFPD UCOMISD ANDPD MOVMSKPD
SSE3 (SSE3)
Used by default on supported hardware.
 
LDDQU
SSSE3 (SSSE3)
Used by default on supported hardware.
 
PALIGNR PSHUFB
SSE 4.2 (SSE4_2)
Used by default on supported hardware.
Found on Intel processors since at least 2010.
Found on AMD processors since Bulldozer (2011).

 
PCMPISTRI
Used by default on supported hardware.
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VZEROUPPER VBROADCASTSS VZEROALL
Used by default on supported hardware.
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VEXTRACTI128 VPBROADCASTB VPBROADCASTD
Advanced Vector Extensions 512 (AVX512)
Used by default on supported hardware.
 
(ZMM REGISTER USE)
Last automated analysis: 18 January 2022

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)
MIPS 64-bit
mips64
ICT Loongson-3A R3, Loongson-3A R3, Loongson-3A3000 V0.9 FPU V0.1
Loongson LoongArch 64-bit
loongarch64
Loongson-3A5000LL
Intel / AMD x86 32-bit
i686
(Many Processors)
ARMv8 64-bit
armv8l
(Many Processors)
ARMv7 32-bit
armv7l
ARMv7 Cortex-A53 4-Core, ARMv7 Cortex-A72 4-Core, ARMv7 rev 1 4-Core, ARMv7 rev 2 4-Core, ARMv7 rev 3 4-Core, ARMv7 rev 3 8-Core, ARMv7 rev 4 4-Core
ARMv6 32-bit
armv6l
ARMv6-compatible rev 7
ARMv8 64-bit
aarch64
AArch64 rev 4, ARMv8 Cortex-A55 4-Core, ARMv8 Cortex-A72, ARMv8 Cortex-A72 16-Core, ARMv8 Cortex-A72 4-Core, ARMv8 Neoverse-N1, ARMv8 Neoverse-N1 64-Core, ARMv8 Neoverse-N1 80-Core, ARMv8 Neoverse-V1, ARMv8 rev 0 4-Core, ARMv8 rev 0 6-Core, ARMv8 rev 1 4-Core, ARMv8 rev 3 6-Core, Ampere ARMv8 Neoverse-N1 128-Core, Ampere ARMv8 Neoverse-N1 160-Core, Ampere ARMv8 Neoverse-N1 256-Core, Ampere Altra ARMv8 Neoverse-N1 160-Core, Ampere Altra ARMv8 Neoverse-N1 80-Core, Ampere eMAG ARMv8 32-Core, FT2000AHK

Recent Test Results

OpenBenchmarking.org Results Compare

13 Systems - 228 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

4 Systems - 537 Benchmark Results

AMD Ryzen 7 5800X 8-Core - ASRock X570 Pro4 - AMD Starship

Ubuntu 22.04 - 5.17.4-051704-generic - GNOME Shell 42.0

4 Systems - 361 Benchmark Results

AMD Ryzen 9 7900X 12-Core - ASUS ROG CROSSHAIR X670E HERO - AMD Device 14d8

Ubuntu 22.04 - 6.0.0-060000rc1daily20220820-generic - GNOME Shell 42.2

1 System - 6 Benchmark Results

AMD Ryzen 7 PRO 5850U - LENOVO 21A1S00D00 - AMD Renoir Root Complex

Ubuntu 20.04 - 5.15.0-48-generic - Budgie 10.5.1

13 Systems - 333 Benchmark Results

Intel Core i5-12600K - ASUS ROG STRIX Z690-E GAMING WIFI - Intel Device 7aa7

Ubuntu 22.04 - 6.0.0-060000rc1daily20220820-generic - GNOME Shell 42.2

1 System - 7 Benchmark Results

AMD Ryzen 7 PRO 4750G - ASRock X300M-STX - 2 x 8192 MB 3200MHz 4ATF1G64HZ-3G2E1

Microsoft Windows 10 Pro Build 19044 - 10.0.19044.2006 - 31.0.12019.9007

1 System - 7 Benchmark Results

Intel Atom D525 - Intel D525MW - Intel Atom D4xx

Debian 11 - 5.10.0-18-amd64 - 1.0.2

1 System - 7 Benchmark Results

Intel Core i7-3517U - ASUS UX31A - 2 x 2048 MB 1600MHz Elpida

Microsoft Windows 10 Home Build 19044 - 10.0.19044.2006 - 10.18.10.4358

1 System - 17 Benchmark Results

Intel Core i7-4790K - MSI B85-G43 GAMING - Intel 4th Gen Core DRAM

Fedora Linux 36 - 5.19.8-200.fc36.x86_64 - KDE Plasma 5.25.5

1 System - 8 Benchmark Results

Intel Core i5-1235U - LENOVO 21C2S0FL00 - Intel Alder Lake PCH

Ubuntu 22.04 - 5.15.0-46-generic - GNOME Shell 42.2

1 System - 8 Benchmark Results

Intel Core i3-1215U - LENOVO 21C2S0FN00 - Intel Alder Lake PCH

Ubuntu 22.04 - 5.15.0-46-generic - GNOME Shell 42.2

14 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

2 Systems - 87 Benchmark Results

AMD Ryzen 9 5950X 16-Core - Gigabyte X570 AORUS ELITE WIFI - AMD Starship

Gentoo 2.8 - 5.19.1-gentoo-harambe-edition - KDE Plasma 5.25.4

2 Systems - 87 Benchmark Results

AMD Ryzen 9 5950X 16-Core - Gigabyte X570 AORUS ELITE WIFI - AMD Starship

Gentoo 2.8 - 5.19.1-gentoo-harambe-edition - KDE Plasma 5.25.4

1 System - 59 Benchmark Results

AMD Ryzen 9 5950X 16-Core - Gigabyte X570 AORUS ELITE WIFI - AMD Starship

Gentoo 2.8 - 5.19.0-gentoo-harambe-edition - KDE Plasma 5.25.4

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

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

6 Systems - 1421 Benchmark Results

Unknown - Marvell Armada 3720 Board - 2048MB

Ubuntu 16.04 - 4.4.52-armada-17.06.2-g12feccb - GCC 5.4.0 20160609

12 Systems - 593 Benchmark Results

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

Ubuntu 20.04 - 5.8.0-050800daily20200622-generic - GNOME Shell 3.36.2

2 Systems - 178 Benchmark Results

Intel Core i9-7980XE - ASUS PRIME X299-A - Intel Sky Lake-E DMI3 Registers

Ubuntu 18.04 - 4.15.2-041502-generic - GNOME Shell 3.26.2

3 Systems - 182 Benchmark Results

AMD Ryzen Threadripper 1950X 16-Core - Gigabyte X399 AORUS Gaming 7 - AMD Family 17h

Ubuntu 18.04 - 4.15.2-041502-generic - GNOME Shell 3.26.2

1 System - 62 Benchmark Results

ICT Loongson-3A R3 - Unknown - AMD RS780 + SB7x0

Loongnix 1.0 - 3.10.84-16.fc21.loongson.mips64el - MATE 1.8.1

7 Systems - 62 Benchmark Results

Intel Core i9-7960X - MSI X299 SLI PLUS - 4 x 4096 MB 3000MHz

Microsoft Windows 10 Pro Build 19008 - 10.0 - 26.20.12028.2

1 System - 748 Benchmark Results

Intel Core i7-7700K - MSI Z270 GAMING M7 - Intel Intel Kaby Lake + Z270

Ubuntu 18.04 - 4.15.0-23-generic - GNOME Shell 3.28.1

1 System - 173 Benchmark Results

Intel Core i9-7980XE - ASUS PRIME X299-A - Intel Sky Lake-E DMI3 Registers

Ubuntu 18.04 - 4.15.2-041502-generic - GNOME Shell 3.26.2

1 System - 84 Benchmark Results

ARMv8 rev 3 - 8192MB - 31GB 032G34

Ubuntu 16.04 - 4.4.38-tegra - Unity 7.4.0

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

3 Systems - 56 Benchmark Results

AMD Ryzen 3 2200G with Radeon Vega - Gigabyte AX370-Gaming 5 - AMD Device 15d0

Ubuntu 17.10 - 4.15.1-041501-generic - GNOME Shell 3.26.2

Find More Test Results