On Mon, Sep 2, 2013 at 8:48 AM, Victor Stinner <victor.stin...@gmail.com>wrote:

> 2013/9/2 Eli Bendersky <eli...@gmail.com>:
> > Yes, now I see a 500 usec difference timed within the Python script. When
> > timing the whole execution of Python: (...)
>
> Can you please provide the list of imported modules by:
> python -c 'import sys; print(sys.modules)'
>
> For python with default options and for python with -S (no site
> module) options? And also with your patch?
>
> Python should be fast to write "hello world" (or "python -c pass),
> it's a dummy but common benchmark (to compare Python to other VM /
> other programming languages).
>

The sorted list for both default and -S (they're identical) is
http://pastebin.com/4vzSMCu7 - there are 55 entries there, including things
like itertools, heapq, functools and collections. With my patch, enum is
also added (which makes sense since os is in the list). So the 0.5ms
increase for the 34ms runtime kind-of makes sense.

Eli
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to