Re: [SMARTY] yet another benchmark
| From: | Monte Ohrt | Date: | Mon, 10 Jun 2002 20:47:36 +0000 |
| Subject: | Re: [SMARTY] yet another benchmark | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4745@lists.php.net to get a copy of this message | ||
No, the cache should be there every time. It might get generated the first iteration if the cache has expired since someone else hit the benchmark.
Peter Bowyer brought up an interesting point though:
As you can see in the source, I echo a period "." and flush() the contents after every iteration. This way you can watch the progress. I'm wondering, does browser latency affect this? In other words, if I do a flush() in PHP, does it wait for an acknowledgement from the client (browser) before continuing? If so, I should remove this as it would most likely affect benchmarks.
Monte
Nick Wilson wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * and then Peter Bowyer declared....-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.I don't believe it! Smarty with its cache enabled is slower than without!!!Just a guess, (only picked up smarty at the weekend ;-) but I think that would be because the cache has to be created first and this is the first invocation right? - --Nick Wilson // www.explodingnet.com-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE9BQ/YHpvrrTa6L5oRAgXxAJ9lr4pnjuIR4cHE/kYV5VejiYRtlgCcDM2i iOTznJjzwgikql3gTBweUY8= =Aag+ -----END PGP SIGNATURE-----