[Python-Dev] Python Benchmarks

"Martin v. Löwis" martin at v.loewis.de
Sat Jun 3 16:44:46 CEST 2006

Tim Peters wrote:
> Without the sleep, it gets charged 6 CPU seconds.  With the sleep, 0
> CPU seconds.
> But life would be more boring if people believed you the first time ;-)

This only proves that it uses clock ticks for the accounting, and not
something with higher resolution. To find out whether it samples or
measures CPU usage, you really have to read the source code of the
operating system (or find some documentation of somebody who has seen
the source code).


More information about the Python-Dev mailing list