Author pitrou
Recipients Aaron.Sherman, giampaolo.rodola, gregory.p.smith, neologix, pitrou, vstinner
Date 2011-03-02.12:34:55
SpamBayes Score 0.00256917
Marked as misclassified No
Message-id <1299069296.58.0.337382134397.issue11314@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a quick profile under 3.x:

Time: 10178.0 ms
         320812 function calls (320809 primitive calls) in 10.182 seconds

   Ordered by: internal time

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
    10000    5.937    0.001    5.937    0.001 {built-in method read}
    10000    1.462    0.000    1.462    0.000 {built-in method waitpid}
    10000    1.042    0.000    1.042    0.000 {built-in method fork_exec}
    10000    0.752    0.000    8.131    0.001 subprocess.py:1119(_execute_child)
        1    0.228    0.228   10.182   10.182 bench_subprocess.py:1(<module>)
    10000    0.177    0.000    8.345    0.001 subprocess.py:631(__init__)
    20000    0.079    0.000    0.079    0.000 {built-in method close}
    10000    0.061    0.000    1.584    0.000 subprocess.py:1368(wait)


So it looks like our parent Python process spends its time (read(), waitpid()) waiting for its child...
History
Date User Action Args
2011-03-02 12:34:56pitrousetrecipients: + pitrou, gregory.p.smith, vstinner, giampaolo.rodola, neologix, Aaron.Sherman
2011-03-02 12:34:56pitrousetmessageid: <1299069296.58.0.337382134397.issue11314@psf.upfronthosting.co.za>
2011-03-02 12:34:56pitroulinkissue11314 messages
2011-03-02 12:34:55pitroucreate