Skip to content

Instantly share code, notes, and snippets.

@fujiwara
Created November 20, 2009 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fujiwara/239271 to your computer and use it in GitHub Desktop.
Save fujiwara/239271 to your computer and use it in GitHub Desktop.
Perl/5.10.0 (x86_64-linux-gnu-thread-multi)
HTML::Template/2.9
HTML::Template::Compiled/0.94
HTML::Template::Pro/0.92
Template/2.20
Text::MicroTemplate/0.09
Benchmark: running HT, HT::C, HT::Pro, MT, TT for at least 1 CPU seconds...
HT: 2 wallclock secs ( 1.10 usr + 0.00 sys = 1.10 CPU) @ 2035.45/s (n=2239)
HT::C: 1 wallclock secs ( 1.05 usr + 0.00 sys = 1.05 CPU) @ 13652.38/s (n=14335)
HT::Pro: 1 wallclock secs ( 0.74 usr + 0.31 sys = 1.05 CPU) @ 18618.10/s (n=19549)
Argument "on" isn't numeric in numeric eq (==) at ../lib/Text/MicroTemplate/File.pm line 43.
MT: 1 wallclock secs ( 1.01 usr + 0.09 sys = 1.10 CPU) @ 19549.09/s (n=21504)
TT: 1 wallclock secs ( 1.07 usr + 0.00 sys = 1.07 CPU) @ 8372.90/s (n=8959)
Rate HT TT HT::C HT::Pro MT
HT 2035/s -- -76% -85% -89% -90%
TT 8373/s 311% -- -39% -55% -57%
HT::C 13652/s 571% 63% -- -27% -30%
HT::Pro 18618/s 815% 122% 36% -- -5%
MT 19549/s 860% 133% 43% 5% --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment