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

ptk
 2005-08-19 13:14
#40800 #40800
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
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

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