<div class="gmail_quote">On Sat, Apr 10, 2010 at 1:06 PM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@mit.edu">rnk@mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Looking at dictnotes.txt, I can see that people have experimented with<br>
taking advantage of cache locality. I was wondering what benchmarks<br>
were used to glean these lessons before I write my own. Python<br>
obviously has very particular workloads that need to be modeled<br>
appropriately, such as namespaces and **kwargs dicts.<br></blockquote><div><br>I don't know what benchmarks were used to write dictnotes.txt, but moving forward I would recommend implementing your changes on trunk (i.e., Python 2.x) and running the
Unladen Swallow Benchmarks, which you can get from the link below:<br>
<br>
<a href="http://code.google.com/p/unladen-swallow/wiki/Benchmarks">http://code.google.com/p/unladen-swallow/wiki/Benchmarks</a><br><br>They are macro-benchmarks on real applications. You will probably also want to write some micro-benchmarks of your own so that you can pinpoint any bottlenecks in your code and determine where you are ahead of the current dict implementation and where you are behind.<br>
</div></div><div style="margin: 2em 0pt;" name="sig_2341e11ee1">--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com">Stutzbach Enterprises, LLC</a>
</div><br>