Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 | 3 
sheldonlendrum
Sheldon
120 posts

Master Geek

Lifetime subscriber

  #2649812 8-Feb-2021 21:32
Send private message

sheldon@sheldon2:~$ python3 prime.py
Find all primes up to: 200000 using 128 processes.
Time elapsed: 6.91 seconds
Number of primes found 17984

 

sheldon@sheldon2:~$ pypy prime.py
Find all primes up to: 200000 using 128 processes.
Time elapsed: 2.5 seconds
Number of primes found 17984




michaelmurfy
meow
13253 posts

Uber Geek

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2649865 8-Feb-2021 22:18
Send private message

Well, the original test is too easy with pypy...

 

Find all primes up to: 200000 using 64 processes.
Time elapsed: 0.62 seconds
Number of primes found 17984

 

How about making it a little harder and finding all primes within 1 million?

 

Find all primes up to: 1000000 using 64 processes.
Time elapsed: 14.71 seconds
Number of primes found 78498

 

But this isn't the best of benchmarks.





Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)

Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.


  #2650288 9-Feb-2021 13:01
Send private message

4 core i7-4790 CPU @ 3.60GHz (8 logical processors)

 

ben@KIWI:~$ python3 primes.py
Find all primes up to: 200000 using 32 processes.
Time elapsed: 27.5 seconds
Number of primes found 17984




zenourn
271 posts

Ultimate Geek

Trusted
DR

  #2650321 9-Feb-2021 13:32
Send private message

michaelmurfy:

 

How about making it a little harder and finding all primes within 1 million?

 

Find all primes up to: 1000000 using 64 processes.
Time elapsed: 14.71 seconds
Number of primes found 78498

 

But this isn't the best of benchmarks.

 

 

pypy prime.py 
Find all primes up to: 1000000 using 256 processes.
Time elapsed: 5.45 seconds
Number of primes found 78498


1 | 2 | 3 
View this topic in a long page with up to 500 replies per page Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.