Re: Speed of demo
| From: | Monte Ohrt | Date: | Mon, 29 Oct 2001 17:44:03 +0000 |
| Subject: | Re: Speed of demo | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1767@lists.php.net to get a copy of this message | ||
Actually now that I think about it, APC & Zend cache aren't going to
make a difference in these numbers... they are calculated after the
script has begun execution anyways. To get a true page load calculation,
you would need to fetch the page externally through the web server. I
have a PHP script that I could share to do this (_very_ simple one page
test) if anyone is interested. Output looks like this:
instant: 0.328 avg: 1.452 min: 0.326 max: 3.700 length: 107 bytes
instant: 0.302 avg: 1.164 min: 0.302 max: 3.700 length: 107 bytes
instant: 0.342 avg: 1.000 min: 0.302 max: 3.700 length: 107 bytes
instant: 0.326 avg: 0.887 min: 0.302 max: 3.700 length: 107 bytes
instant: 0.289 avg: 0.802 min: 0.289 max: 3.700 length: 107 bytes
............
Yes, form pages probably aren't worth caching. You _could_ use insert
tags for the form and cache the rest. Other pages may be worth caching
though, depending on your app.
LIMBOURG Arnaud wrote:
>
> I am under win so i cannot use those caching solutions, they're only for
> *NIX
>
> I cannot use smarty caching, my site in completly dynamic, i show form
> fields and display is based upon previous choices, so i must run queries
> every time... Every call gives different results.
>
> ;))
>
> > Try your results with APC or Zend Cache, and turn on template caching.
> > Much like a static page if done properly. ;-)
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/