Jump to content
Sign in to follow this  
Lars Fosdal

Olaf Monien's Multithread demo on DelphiCon was nice!

Recommended Posts

This is probably the best example I've seen on proper use of the parallel libs and how to keep the UI responsive and updated (on multiple platforms).

It doesn't cover all the corners of the parallel lib - but it is an excellent example of how beautifully simple multithreading can be.
 

 

  • Like 6
  • Thanks 1

Share this post


Link to post

Windows 11 - Intel 32 bit on 1 of 4 cores (under Windows 11 for ARM under Parallels)
Single thread: 00:00:15,325s 1.02M primes/sec
Multi-thread : 00:00:05,097s 3.08M primes/sec


Windows 11 - Intel 64 bit on 4 cores (under Windows 11 for ARM under Parallels)
Single thread: 00:00:09,831s 1.6M primes/sec
Multi-thread : 00:00:03,234s 4.85M primes/sec


Windows 10 - Intel 32 bit on 1 of 12 cores (6 physical on a Lenovo P52)
Single thread: 00:00:04,969s 3,16M primes/sec
Multi-thread : 00:00:00,903s 17,39M primes/sec


Windows 10 - Intel 64 bit on 12 cores (6 physical on a Lenovo P52)
Single thread: 00:00:05,971s 2,63M primes/sec
Multi-thread : 00:00:00,843s 18,62M primes/sec


macOS - Intel 64 bit on 10 cores on MBP M1 Pro
Single thread: 00:00:03,712s 4,23M primes/sec
Multi-thread : 00:00:00,491s 31,97M primes/sec


macOS - ARM 64 bit on 10 cores on MBP M1 Pro
Single thread: 00:00:03,711s 4,23M primes/sec
Multi-thread : 00:00:00,483s 32,5M primes/sec

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×