Module Expr Str Import alias ImportFrom alias Import alias Assign NameStore ListLoad TupleLoad Str Dict Str Dict Str Str Str TupleLoad Str Dict Str Str Str ListLoad Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Print BinOpMod Str NameLoad Print For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Print Call NameLoad Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Print Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad AttributeLoad NameLoad attr
N/A N/A 
A rudimentary backward- and forward-compatible script to benchmark pystache.

Usage:

tests/benchmark.py 10000

 N/A sys timeit Timer N/A pystache N/A examples N/A N/A {{#person}}Hi {{name}}{{/person}} N/A person N/A name Jon Hi Jon N/A <div class="comments">
<h3>{{header}}</h3>
<ul>
{{#comments}}<li class="comment">
<h5>{{name}}</h5><p>{{body}}</p>
</li>{{/comments}}
</ul>
</div> N/A header comments My Post Comments N/A N/A name body Joe Thanks for this post! N/A name body Sam Thanks for this post! N/A name body Heather Thanks for this post! N/A name body Kathy Thanks for this post! N/A name body George Thanks for this post! <div class="comments">
<h3>My Post Comments</h3>
<ul>
<li class="comment">
<h5>Joe</h5><p>Thanks for this post!</p>
</li><li class="comment">
<h5>Sam</h5><p>Thanks for this post!</p>
</li><li class="comment">
<h5>Heather</h5><p>Thanks for this post!</p>
</li><li class="comment">
<h5>Kathy</h5><p>Thanks for this post!</p>
</li><li class="comment">
<h5>George</h5><p>Thanks for this post!</p>
</li>
</ul>
</div> make_test_function N/A N/A example N/A N/A N/A N/A template context expected example test N/A N/A N/A N/A N/A actual N/A N/A pystache render template context N/A N/A actual expected N/A N/A N/A Exception N/A Benchmark mismatch: 
%s
*** != ***
%s N/A expected actual N/A N/A test N/A main N/A N/A sys_argv N/A N/A N/A args N/A sys_argv N/A 1 N/A count N/A int N/A args N/A 0 N/A N/A Benchmarking: %sx count N/A N/A example examples N/A N/A test N/A make_test_function example N/A t N/A Timer test N/A N/A min N/A N/A t repeat repeat 3 number count N/A Done N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A sys argv