Forums

Multithreaded limits

Hi,

Just wondered if anyone had tested the limits of how many threads they can run, I know each task will be different, perhaps the PA team have a testing tool?

I currently have something running at 50 threads which is running fine but it of course could be running faster with more or less threads - if there is an obvious way for me to test this please let me know :)

It really is something that's going to vary widely based on your use case...

Is there a way you can strip your code down to a small, representative sample of the work you're doing, and then try timing runs with different numbers of threads?

the bash "time" command can come in useful, so run

time python do_my_stuff.py

and it will run the python script as normal and then print out some run time info on completion...