Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Template.pm vs. GT::Template performance

Quote Reply
Template.pm vs. GT::Template performance
Just FYI, I tried out how the old Links 2.0 performs, if we replace just one part of it: the template parser.
I was curious, how much performance can I get using GT::Template over the old Template.pm?
Maybe several of you also asked this question from yourself, so I thought this info would helpful for you.

BTW: Don't blame me about how the tests was done! Different live tests would likely show different results! This test was based on my live site, without the goal to do a very accurate test. However IMO, it shows the power of GT::Template...

I changed the parser to GT::Template and executed the same build event using each parser.
You are curious for the results, eh? Wink
Well, the results are what I expected. GT::Template is much-much faster, than Template.pm.

Here they are the numbers:
1) Test results after parsing 1 page:
Template.pm: Time spent template parsing 1 template: (0,015 s)
GT::Template: Time spent template parsing 1 template: (0,002 s)
That's 7.5x faster!
One page does not really shows the possibilities, so we should see the test results after parsing more than 1 hundred pages.

2) Test results after parsing more than 1 hundred pages:
Template.pm: Work time of all template parsing: (15,43 s)
GT::Template: Work time of all template parsing: (0,90 s)
That's more than 17x faster than old Template.pm!

That's all folks!
I hope you enjoyed! Cool

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread Template.pm vs. GT::Template performance webmaster33 5128 Feb 6, 2003, 6:30 PM
Thread Re: [webmaster33] Template.pm vs. GT::Template performance
Jagerman 4974 Feb 7, 2003, 1:37 PM
Thread Re: [Jagerman] Template.pm vs. GT::Template performance
Paul 4934 Feb 7, 2003, 1:57 PM
Thread Re: [Paul] Template.pm vs. GT::Template performance
Jagerman 4914 Feb 8, 2003, 12:08 AM
Thread Re: [Jagerman] Template.pm vs. GT::Template performance
tomhenry 4763 Nov 9, 2006, 6:01 AM
Thread Re: [tomhenry] Template.pm vs. GT::Template performance
Andy 4809 Nov 9, 2006, 6:05 AM
Thread Re: [Andy] Template.pm vs. GT::Template performance
tomhenry 4822 Nov 9, 2006, 6:18 AM
Thread Re: [tomhenry] Template.pm vs. GT::Template performance
tomhenry 4781 Nov 9, 2006, 6:41 AM
Thread Re: [tomhenry] Template.pm vs. GT::Template performance
Andy 4783 Nov 10, 2006, 6:20 AM
Post Re: [Andy] Template.pm vs. GT::Template performance
tomhenry 4725 Nov 10, 2006, 6:46 AM
Thread Re: [Andy] Template.pm vs. GT::Template performance
tomhenry 4736 Nov 10, 2006, 6:53 AM
Thread Re: [tomhenry] Template.pm vs. GT::Template performance
Andy 4778 Nov 10, 2006, 7:41 AM
Thread Re: [Andy] Template.pm vs. GT::Template performance
tomhenry 4750 Nov 10, 2006, 7:45 AM
Post Re: [tomhenry] Template.pm vs. GT::Template performance
tomhenry 4748 Nov 10, 2006, 7:46 AM
Post Re: [tomhenry] Template.pm vs. GT::Template performance
tomhenry 4718 Nov 12, 2006, 1:44 AM