Re: A very slow program

Liste des GroupesRevenir à cl c 
Sujet : Re: A very slow program
De : nospam (at) *nospam* needed.invalid (Paul)
Groupes : alt.comp.lang.c comp.lang.c
Date : 03. Oct 2024, 23:25:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vdn23s$3sp80$1@dont-email.me>
References : 1 2
User-Agent : Ratcatcher/2.0.0.25 (Windows/20130802)
On Wed, 10/2/2024 8:44 AM, Bonita Montero wrote:
Ive developed a Sieve of Erastosthenes in C++20 with an unbeaten
performance. With this code I get all primes <= 2 ^ 32 in 140ms
on my AMD 7950X 16-core Zen4-system.

Why not measure against the programs provided in a Linux distro ?

$ time primesieve 1e6
Sieve size = 256 KiB
Threads = 1
100%
Seconds: 0.000
Primes: 78498

real    0m0.002s   <=== Without printing the numbers, is pretty fast
user    0m0.000s
sys     0m0.000s

$ time primesieve 1e6 --print > NUL

real    0m0.009s   <=== Without Terminal to slow I/O, is in the Unix ballpark
user    0m0.005s
sys     0m0.000s

$ time primesieve 4294967295
Sieve size = 256 KiB
Threads = 16             <=== 5700G Zen3  (8C 16T), stock speed, execution under WSL2
100%
Seconds: 0.072
Primes: 203280221

real    0m0.073s
user    0m0.869s
sys     0m0.009s

   Paul

Date Sujet#  Auteur
16 Sep 24 * A very slow program21Student Project
16 Sep 24 +- Re: A very slow program1Kaz Kylheku
16 Sep 24 +* Re: A very slow program3Paul
2 Oct 24 i`* Re: A very slow program2Vir Campestris
2 Oct 24 i `- Re: A very slow program1Paul
2 Oct 24 +* Re: A very slow program14Bonita Montero
3 Oct 24 i+* OT: Re: A very slow program12Vir Campestris
4 Oct 24 ii`* Re: OT: Re: A very slow program11Bonita Montero
20 Oct 24 ii `* Re: OT: Re: A very slow program10Vir Campestris
20 Oct 24 ii  +* Re: OT: Re: A very slow program2Kenny McCormack
26 Oct 24 ii  i`- Re: OT: Re: A very slow program1Vir Campestris
21 Oct 24 ii  +* Re: OT: Re: A very slow program6Bonita Montero
26 Oct 24 ii  i`* Re: OT: Re: A very slow program5Vir Campestris
26 Oct 24 ii  i `* Re: OT: Re: A very slow program4Bonita Montero
26 Oct 24 ii  i  `* Re: OT: Re: A very slow program3Vir Campestris
27 Oct 24 ii  i   `* Re: OT: Re: A very slow program2Bonita Montero
28 Oct 24 ii  i    `- Re: OT: Re: A very slow program1Vir Campestris
22 Oct 24 ii  `- Re: OT: Re: A very slow program1Richard Harnden
3 Oct 24 i`- Re: A very slow program1Paul
2 Oct 24 `* Re: A very slow program2Janis Papanagnou
3 Oct 24  `- Re: A very slow program1Keith Thompson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal