Thread HTML::Template::Compiled (HTC) (209 answers)
Opened by renee at 2005-06-26 15:48

pq
 2005-12-11 23:01
#40806 #40806
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=ptk,19.08.2005, 11:14]Scheint wirklich ganz schoen schnell zu sein. Ein Benchmark mit Template-Toolkit (tt), HTML::Template (ht und ht_cache), Text::ScriptTemplate (st) und HTML::Template::Compiled (ht_compiled). Wo es eine Caching-Variante in irgendeiner Form gibt, habe ich sie auch verwendet. Die Templates sind sehr kurz und enthalten jeweils eine Bedinung und eine Schleife.
Code: (dl )
1
2
3
4
5
6
7
8
               Rate    tt tt_cache    ht ht_cache    st st_mem_cache ht_compiled
tt            237/s    --     -51%  -69%     -84%  -85%         -90%        -93%
tt_cache      487/s  106%       --  -36%     -67%  -68%         -80%        -85%
ht            760/s  221%      56%    --     -49%  -51%         -69%        -77%
ht_cache     1478/s  524%     204%   95%       --   -4%         -40%        -55%
st           1540/s  551%     216%  103%       4%    --         -38%        -53%
st_mem_cache 2465/s  941%     406%  225%      67%   60%           --        -24%
ht_compiled  3262/s 1278%     570%  329%     121%  112%          32%          --

perl 5.8.0, Linux 2.4.x[/quote]
wie hast du Text::ScriptTemplate mit mem_cache hinbekommen?
ich habe es jetzt mal mit in mein benchmark eingefügt, und es ist nicht besonders schnell...
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread HTML::Template::Compiled (HTC)