Joe Johnston wrote:
Has anyone benchmarked the performance of Apache::Templates?
No, but Template Toolkit has been benchmarked. See http://www.chamas.com/bench/.

Using the ab tool, I'm able to serve about 110 static
HTML pages per second.
That's extremely low for static pages. On a modern machine you should be getting more like 1000 - 3000.

Using a very simple tt2 (shown below), the throughput
drops to 17 pages per second. Is this precipitous drop normal?
It is normal for dynamic pages of any kind to be at least 50% slower than static ones. Template Toolkit has come in at about 70% slower than static pages in tests that I've seen, which is still faster than most of the other options. Naturally the template you use has a huge effect here.

> Any thoughts on how I improve the performance?

Write your own handler instead of using Apache::Template. It won't make a huge difference though. When you put some significant code into your template you will find that most of the time is spent running your code, not Template Toolkit.

- Perrin


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.ourshack.com/mailman/listinfo/templates


Reply via email to