<div dir="ltr">I've also heard great things about `perf` if you're on Linux.<div><br></div><div>Alex</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 11, 2013 at 12:03 PM, Maciej Fijalkowski <span dir="ltr"><<a href="mailto:fijall@gmail.com" target="_blank">fijall@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Feb 11, 2013 at 7:39 PM, Amaury Forgeot d'Arc<br>
<<a href="mailto:amauryfa@gmail.com">amauryfa@gmail.com</a>> wrote:<br>
> 2013/2/11 Eleytherios Stamatogiannakis <<a href="mailto:estama@gmail.com">estama@gmail.com</a>><br>
>><br>
>> ><br>
>> > Which kind of profiler are you using? It possible that CPython builtin<br>
>> > functions are not profiled the same way as PyPy's.<br>
>><br>
>> lsprofcalltree.py .<br>
>><br>
>> From APSW's source code, i think that it uses this API:<br>
>><br>
>> (in cursor.c)<br>
>> PyUnicode_DecodeUTF8<br>
>><br>
>> Maybe lsprofcalltree doesn't profile it?<br>
><br>
><br>
> Indeed. CPU cost is hidden in the cursor method.<br>
><br>
><br>
> --<br>
> Amaury Forgeot d'Arc<br>
><br>
</div></div><div class="im">> _______________________________________________<br>
> pypy-dev mailing list<br>
> <a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
><br>
<br>
</div>I would suggest using valgrind. It's a very good (albeit very slow)<br>
tool for seeing C-level performance. I remember seeing it both for<br>
CPython and PyPy when trying. Can you try yourself?<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
pypy-dev mailing list<br>
<a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>"I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)<br>"The people's good is the highest law." -- Cicero<br>
</div>