<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 2, 2013 at 8:48 AM, Victor Stinner <span dir="ltr"><<a href="mailto:victor.stinner@gmail.com" target="_blank">victor.stinner@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2013/9/2 Eli Bendersky <<a href="mailto:eliben@gmail.com">eliben@gmail.com</a>>:<br>
<div class="im">> Yes, now I see a 500 usec difference timed within the Python script. When<br>
</div>> timing the whole execution of Python: (...)<br>
<br>
Can you please provide the list of imported modules by:<br>
python -c 'import sys; print(sys.modules)'<br>
<br>
For python with default options and for python with -S (no site<br>
module) options? And also with your patch?<br>
<br>
Python should be fast to write "hello world" (or "python -c pass),<br>
it's a dummy but common benchmark (to compare Python to other VM /<br>
other programming languages).<br></blockquote><div><br></div><div>The sorted list for both default and -S (they're identical) is <a href="http://pastebin.com/4vzSMCu7">http://pastebin.com/4vzSMCu7</a> - 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.<br>

<br>Eli<br><br></div></div><br><br><br></div></div>