Benchmark app for your CPU

Discussion of chess software programming and technical issues.

Moderator: Ras

dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: Benchmark app for your CPU

Post by dangi12012 »

JohnWoe wrote: Sat Nov 20, 2021 5:07 pm ^ Are you running Windows? In Linux this works. I use this in C++ for threading:

Code: Select all

  g_cpus = std::clamp(nth, 1, static_cast<int>(std::thread::hardware_concurrency()));
collatzzz tries to grab all cores possible. Use "-cores 3" to limit cores. As for open source code. Will see. That's just stress...

I added some scaling pyplot on my 16 CPU / 4800U: https://github.com/SamuraiDangyo/collatzzz

I generator 1 million Collatz conjecture steps here: https://github.com/SamuraiDangyo/collat ... -steps.txt
Are you finding errors?

Collatz sum 0 -> 1B in 22.9 seconds :D

Code: Select all

> ./collatzzz -sum 0 1000000000

... Sum ...
==============================
Collatz:    0 -> 1,000,000,000
Sum(steps): 203,234,783,374
CPU(s):     16
NPS:        8,867,910,000
Time(ms):   22,918
Yes you borked the windows performance (also please add .exe to the release filename)
because you are using POSIX and its not build with MSVC - or CLANG on Windows.

Ryzen 9 5950X:

Code: Select all

collatzzz-x86-0.3-windows.exe -sum 0 1000000000
collatzzz 0.3 by Toni Helminen
... Sum ...
==============================
Collatz:    0 -> 1,000,000,000
Sum(steps): 203,234,783,374
CPU(s):     32
Hash(MB):   0
SPS:        5,016,161,106
Time(ms):   40,516
I cant say much more without sourcecode. I would be interested to see CLANG vs GCC vs MSVC on a basic problem like this.
No worries - just push them to the git repo in a src folder.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer