Skip to content

morontt/queens-microbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Queens-microbench

Solution of the n-queens problem

Installation

git clone https://github.com/morontt/queens-microbench.git
cd queens-microbench
make

./bench # Run benchmark :)

Results for 14 queens

CPU OS Compiler time (sec)
Apple M2 macOS 14.5 clang 1500.3.9 1.4811 ± 0.0339
Intel Core i7-10750H 2.6GHz Ubuntu 22.04 gcc 11.2.0 1.6292 ± 0.0349
AMD Ryzen 7 2700X 3.7GHz Ubuntu 18.04.2 gcc 7.4.0 1.9669 ± 0.0284
Intel Core i7-4770 3.4GHz Debian 7.0 gcc 4.7.2 1.9880 ± 0.0190
Intel Core i5-3570K 3.4GHz Ubuntu 12.04.5 gcc 4.6.3 2.0410 ± 0.0091
Intel Core i3-6100 3.7GHz Mint 18 Sarah gcc 5.4.0 2.0797 ± 0.0032
Intel Core i7-8550U 1.8GHz Ubuntu 18.04.4 gcc 7.5.0 2.1298 ± 0.1326
Intel Pentium Gold 7505 2.0GHz Ubuntu 22.04 gcc 11.2.0 2.1683 ± 0.0030
Intel Core i3-3220 3.3GHz Ubuntu 18.04.3 gcc 7.4.0 2.3500 ± 0.0074
Intel Core i3-2100 3.1GHz Ubuntu 12.04.4 gcc 4.6.3 2.4830 ± 0.0177
Intel Core i5-3210M 2.5GHz Ubuntu 14.04.3 gcc 4.8.4 2.5000 ± 0.0102
Intel Core i5-3427U 1.8GHz Ubuntu 14.04.2 gcc 4.8.2 2.7090 ± 0.0094
AMD Phenom II X6 1100T 3.3GHz Ubuntu 16.04.2 gcc 5.4.0 2.7933 ± 0.1410
Intel Core i7-3615QM 2.3GHz MacOS X 10.10.3 clang 602.0.53 2.7965 ± 0.5371
Intel Core i5-3427U 1.8GHz Ubuntu 14.04.2 clang 3.5.0 2.8972 ± 0.0106
Intel Core i5-2415M 2.3GHz MacOS X 10.9.5 clang 600.0.57 2.9634 ± 0.1005
Intel Core i5-4200U 1.6GHz Ubuntu 14.04.2 gcc 4.8.2 2.9943 ± 0.0105
Intel Core i3-3110M 2.4GHz Ubuntu 14.04.2 gcc 4.8.2 3.1878 ± 0.1100
Intel Pentium 2020M 2.4GHz Ubuntu 14.04.4 gcc 4.8.4 3.2138 ± 0.3719
AMD A10-5745M 2.1GHz Ubuntu 14.04.3 gcc 4.8.4 4.5932 ± 0.0083
AMD Athlon 64 X2 4600+ 2.4GHz Ubuntu 14.04.6 gcc 4.8.4 4.7207 ± 0.0006
Intel Pentium Dual E2180 2.0Ghz Ubuntu 22.04 gcc 5.4.0 4.8663 ± 0.0192
AMD Phenom X3 8450 2.1GHz Ubuntu 14.04.3 gcc 4.8.4 4.9440 ± 0.0147
Intel C2D E4500 2.2GHz Ubuntu 14.04.2 gcc 4.8.2 7.2959 ± 0.6989
Intel Celeron 220 1.2GHz Ubuntu 14.04.2 gcc 4.8.2 8.4001 ± 0.0015
Intel Celeron M 900MHz FreeBSD 10.1 clang 3.4.1 11.3338 ± 0.2459
Broadcom BCM2836 900MHz Raspbian Jessie gcc 4.9.2 20.9343 ± 5.2217
Broadcom BCM2835 700MHz Raspbian Wheezy gcc 4.6.3 30.2304 ± 0.0126

About

Solution of the n-queens problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published