<div dir="ltr">My guess is that this has to do with disk access?  With venvs running on a ramdisk I get almost identical times, particularly if I run it a couple of times:<span style="line-height:1.5;font-size:13.1999998092651px"> </span><div><div><br></div><div>



<div>
<span style="font-family:monospace"><span style="color:rgb(178,178,178)">15:39</span><span style="color:rgb(0,0,0)"> $ time python -c "from matplotlib import pyplot; import matplotlib; print(matplotlib.__version__)"
</span><br>1.4.3
<br>
<br>real    0m0.377s
<br>user    0m0.343s
<br>sys     0m0.030s<br>
<br></span></div></div><div>



<div>
<span style="font-family:monospace"><span style="color:rgb(178,178,178)">15:36</span><span style="color:rgb(0,0,0)"> $ time python -c "from matplotlib import pyplot; import matplotlib; print(matplotlib.__version__)"
</span><br>1.5.dev1
<br>
<br>real    0m0.362s
<br>user    0m0.327s
<br>sys     0m0.030s</span></div><div><span style="font-family:monospace"><br></span></div><div>Both of those times fluctuate and despite what I pasted, 1.4.3 seems to be faster more often than not (but by hundredths of seconds).</div><div><br></div><div>Running this command several times seems the later runs seem to be faster than the first time.</div></div></div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 8, 2015 at 3:30 PM Eric Firing <<a href="mailto:efiring@hawaii.edu">efiring@hawaii.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">test:<br>
<br>
time python -c "from matplotlib import pyplot"<br>
<br>
On a linux VM with Py 3.4 the user time is around<br>
<br>
0.25 s for 1.4.3<br>
0.5 s for master<br>
<br>
That's quite a difference.  Can anyone else reproduce this?  Any ideas<br>
as to what is causing the slowdown?<br>
<br>
In both tests the backend was tkagg, so the difference was not a matter<br>
of importing different gui toolkits.<br>
<br>
Eric<br>
_______________________________________________<br>
Matplotlib-devel mailing list<br>
<a href="mailto:Matplotlib-devel@python.org" target="_blank">Matplotlib-devel@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-devel" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-devel</a><br>
</blockquote></div>