Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

TT memory caching

by december (Pilgrim)
on Nov 08, 2009 at 09:00 UTC ( [id://805739]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Template;
    use Benchmark qw(:all);
    ...
        return 0;
    }
    
  2. or download this
    real 0m0.710s -- HTML::Template (cache)
    real 0m1.052s -- Petal (cache)
    real 0m1.969s -- HTML::Template (nocache)
    real 0m7.026s -- TemplateToolkit (supposedly caching?)
    real 0m17.645s -- Petal (nocache)
    
  3. or download this
    $ time perl -d:DProf ./tt.pl 1>/dev/null; dprofpp tmon.out
    
    ...
     1.64   0.122  5.368   1001   0.0001 0.0054  Template::Provider::_fetc
    +h
     1.57   0.117  0.117   1001   0.0001 0.0001  Template::Provider::_init
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://805739]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-19 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found