Xslate のベンチマーク。本日時点。
Xslate は XS 有効なら圧倒的に高速。PP 版はやはり perl にコンパイルする TMT が圧倒的に高速。とはいえ、PP でも十分な速度はでているので、普段 XS でつかってて、どうしても PP つかわなきゃいけないときの代替として利用する程度なら満足できる。
tokuhirom@gpath% perl benchmark/others.pl [~/dev/Text-Xslate] 木 5 11:55
Perl/5.12.1 x86_64-linux
Text::Xslate/0.1054
Text::MicroTemplate/0.15
Template/2.22
Text::ClearSilver/0.10.5.4
HTML::Template::Pro/0.9502
1..5
ok 1 - TT: Template-Toolkit
ok 2 - MT: Text::MicroTemplate
ok 3 - TCS: Text::ClearSilver
ok 4 - HTP: HTML::Template::Pro
ok 5 - HT: HTML::Template
Benchmarks with 'list' (datasize=100)
Rate TT HT MT TCS HTP Xslate
TT 124/s -- -34% -85% -95% -98% -99%
HT 189/s 53% -- -77% -93% -96% -99%
MT 807/s 550% 326% -- -71% -85% -96%
TCS 2739/s 2107% 1346% 240% -- -48% -87%
HTP 5270/s 4146% 2682% 553% 92% -- -74%
Xslate 20479/s 16401% 10711% 2439% 648% 289% --
tokuhirom@gpath% perl benchmark/others.pl --pp [~/dev/Text-Xslate] 木 5 11:55
testing with PP
Perl/5.12.1 x86_64-linux
Text::Xslate/0.1054
Text::MicroTemplate/0.15
Template/2.22
Text::ClearSilver/0.10.5.4
HTML::Template::Pro/0.9502
1..5
ok 1 - TT: Template-Toolkit
ok 2 - MT: Text::MicroTemplate
ok 3 - TCS: Text::ClearSilver
ok 4 - HTP: HTML::Template::Pro
ok 5 - HT: HTML::Template
Benchmarks with 'list' (datasize=100)
Rate TT Xslate HT MT
TT 76.1/s -- -25% -61% -91%
Xslate 101/s 33% -- -48% -88%
HT 194/s 154% 92% -- -76%
MT 822/s 980% 714% 325% --
【20100805 追記】
TT はエスケープもれてたので、| html を追加(0ae5b00)。
Published: 2010-08-05(Thu) 02:58