5 ms·
His code https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/master/2019/03/26/mandelbrot.c https://github.com/lemire/Code-used-on-Daniel-Lemire-s-
by floatboth 8y ago
His code https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/master/2019/03/26/mandelbrot.c https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/... does not use OpenMP.
Different benchmarks favor different processors… Here's another one, now multi-threaded
My quick run of `sysbench cpu` (something with prime numbers) shows:
Skylark 3.3GHz 32core (at Packet; Ubuntu 18.04):
events per second: 44287.87
Zen 3.85GHz 8c16t (my desktop; FreeBSD 13-CURRENT):
events per second: 14632.61
And with a single thread, 1386.24 vs 1740.91. Divided by clock speed, it's about 93% of the performance.
- kgardas 8y agoYou can't really benchmark anything on FreeBSD X-CURRENT. There is a ton of debug code there which slowdowns whole system including its libc. Very unfair comparison be warned!