Startup time is regressing

Alexander Solovyov piranha at piranha.org.ua
Mon Nov 8 03:47:23 CST 2010


On Mon, Nov 8, 2010 at 09:52, Dirkjan Ochtman <dirkjan at ochtman.nl> wrote:
> Sounds like maybe we should make that optional.
>
>> python 2.6.6 --version: 0.00501s
>> python 2.6.6 -c 'print "hello world"': 0.02431s
>>
>> python 3.1.2 --version: 0.00536s
>> python 3.1.2 -c 'print("hello world")': 0.04105s
>
> Well, in 3.x print is a function call, so some of that might be due to
> the fact that function calls are slow.

python 2.6.1:

> time python -c "import sys; sys.stdout.write('test')" > /dev/null
0.02s user 0.01s system 76% cpu 0.039 total

> time python -c "import sys; print 'test'" > /dev/null
0.02s user 0.01s system 63% cpu 0.038 total

So probably that is something different

-- 
Alexander


More information about the Mercurial-devel mailing list