X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=samples%2Fbenchmark%2Fbench_template.pl;h=36a4461193d0ba07aeb4819a00415703748064cd;hb=f30b8252fcf71659a2fd3b5895e009ff8e39299d;hp=7b48028a0deb5e232f6942d60c62616b7cb1aeb0;hpb=d710d6cd21be21c0ab2df3566c2bd61d9015cac6;p=chaz%2Fp5-CGI-Ex diff --git a/samples/benchmark/bench_template.pl b/samples/benchmark/bench_template.pl index 7b48028..36a4461 100644 --- a/samples/benchmark/bench_template.pl +++ b/samples/benchmark/bench_template.pl @@ -44,8 +44,9 @@ my @config1 = (STASH => $s, ABSOLUTE => 1, CONSTANTS => {simple => 'var'}, EVAL_ #push @config1, (INTERPOLATE => 1); my @config2 = (@config1, COMPILE_EXT => '.ttc'); -#use CGI::Ex::Template209; -#my $tt1 = CGI::Ex::Template209->new(@config1); +#use CGI::Ex::Template::XS; +#my $tt1 = CGI::Ex::Template::XS->new(@config1); +#my $tt2 = CGI::Ex::Template::XS->new(@config2); my $tt1 = Template->new(@config1); my $tt2 = Template->new(@config2); @@ -167,8 +168,9 @@ my $tests = { # '43_filteruri' => "[% ' ' | uri %]", # 132% # 550% # 379% # 471% # 12524.4/s # '44_filterevl' => "[% foo | eval %]", # 303% # 530% # 434% # 478% # 5475.5/s # '45_capture' => "[% foo = BLOCK %]Hi[% END %][% foo %]", # 102% # 386% # 291% # 304% # 10606.5/s # - '46_complex' => "$longer_template", # 60% # 290% # 160% # 270% # 1054.3/s # - '47_hello2000' => "$hello2000", # 2% # 136% # 39% # 115% # 184.8/s # + '46_refs' => "[% b = \\code(1); b(2) %]", # 60% # 270% # 239% # 174% # 6451.9/s # + '47_complex' => "$longer_template", # 60% # 290% # 160% # 270% # 1054.3/s # + '48_hello2000' => "$hello2000", # 2% # 136% # 39% # 115% # 184.8/s # # overall # 95% # 406% # 251% # 346% #