[Zope-dev] Benchmarks: DTML vs. ZPT?
Jim Penny
jpenny@universal-fasteners.com
Fri, 8 Feb 2002 11:24:23 -0500
On Fri, Feb 08, 2002 at 11:29:39AM +0000, seb bacon wrote:
> Well, I just ran a very naive test and it suggests that zpt may be about
> twice as slow as dtml.
>
> I made a DTML Method, and a ZPT, identical to each other, containing
> only HTML:
>
> <html>
> Test
> </html>
>
> Then I ran the ab benchmarking tool against each method, thus:
>
> # ab -n 500 http://localhost:8005/zpt_test/dtml
>
> The results are reproduced below, along with the profiling information
> (sorry if it wraps badly)
>
> seb
snip - snip.
This is indeed very interesting. I also had an impression that ZPT was
sometimes evaluating things that it did not need to in the presence
of conditional tags.
How does the timing compare with a Script Python and with an external
method on your machine?
(Yes, I understand they are very different from ZPT and dtml, but I
think this might be useful information for a Zope architect. And this
would give a common baseline.)
Jim Penny