On Thu, 2005-12-08 at 18:24 +0000, Mark Stosberg wrote:
> Also, at least according to the HT::Compiled benchmark, it's about 10
> times faster than TT.

It's 3 times faster.  By default, the benchmark tests creating a new
Template object every time, which no one should ever do.  Switching from
the "all" test to the "output" tests fixes this.

For the curious, the output from this run is attached.  Playing with
parameters like case sensitivity and loop_context_vars can further
affect these.

- Perrin
using  HTML::Template::Compiled 0.57
using       HTML::Template::JIT 0.04
using            HTML::Template 2.7
using                  Template 2.14
Benchmark: running output_ht, output_htc, output_htj, output_tt for at least 1 
CPU seconds...
 output_ht:  1 wallclock secs ( 1.11 usr +  0.00 sys =  1.11 CPU) @ 503.60/s 
(n=559)
output_htc:  1 wallclock secs ( 1.01 usr +  0.01 sys =  1.02 CPU) @ 2026.47/s 
(n=2067)
output_htj:  1 wallclock secs ( 1.09 usr +  0.00 sys =  1.09 CPU) @ 2739.45/s 
(n=2986)
 output_tt:  1 wallclock secs ( 1.07 usr +  0.00 sys =  1.07 CPU) @ 697.20/s 
(n=746)

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to