multi-threaded performance

Antoine Pitrou solipsis at pitrou.net
Sat Oct 17 03:29:48 EDT 2009


Le Sat, 17 Oct 2009 06:54:29 +0200, Dieter Maurer a écrit :
> 
> It is also true that adding CPUs may in fact reduce performance for
> compute bound multithreaded Python programs. While the additional
> computational resources cannot be use by Python, the additional overhead
> (switching between CPUs) may reduce overall performance. I agree with
> you that it is difficult to understand when this overhead were really
> significant.

For what it's worth, I just wrote a little benchmark script to measure 
this kind of things:
http://svn.python.org/view/sandbox/trunk/ccbench/

Regards

Antoine.




More information about the Python-list mailing list