Re: [PHP4BETA] It's not the integers, it's the functions...
| From: | Andi Gutmans | Date: | Fri, 09 Apr 1999 17:52:46 +0000 |
| Subject: | Re: [PHP4BETA] It's not the integers, it's the functions... | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-61@lists.php.net to get a copy of this message | ||
Well I don't know if you're PHP 3.0 is running in debug mode, but Zend is
quite a bit slower when running in DEBUG mode. Make sure ZEND_DEBUG is set
to 0 and see if it makes things a bit faster.
Andi
At 15:46 09/04/99 +0200, Kristian Köhntopp wrote:
>
>Andi Gutmans schrieb:
>> zend_compile.h:#define INITIAL_OP_ARRAY_SIZE 1024
>> Try and edit this and change OP_ARRAY_SIZE to something
>> much smaller, maybe 10. See if it changes things
>> drastically.
>
>Great improvement: SIZE ~5M, RSS ~1.5M. Consistently slower than
>PHP3, but I attribute that to startup & compilation overhead for
>the very large source files. Zend cannot really play its
>strengths with these kind of test cases.
>
>Kristian
>
>kk@poe /tmp/y $ cat testall
>echo "PHP4, P1"
>time /home/kk/php4/php p1.out > /dev/null
>
>echo "PHP4, P2"
>time /home/kk/php4/php p2.out > /dev/null
>
>echo "PHP4, P3"
>time /home/kk/php4/php p3.out > /dev/null
>
>echo "PHP4, P4"
>time /home/kk/php4/php p4.out > /dev/null
>
>echo "PHP4, P5"
>time /home/kk/php4/php p5.out > /dev/null
>
>echo "PHP3, P1"
>time /home/kk/php3/php p1.out > /dev/null
>
>echo "PHP3, P2"
>time /home/kk/php3/php p2.out > /dev/null
>
>echo "PHP3, P3"
>time /home/kk/php3/php p3.out > /dev/null
>
>echo "PHP3, P4"
>time /home/kk/php3/php p4.out > /dev/null
>
>echo "PHP3, P5"
>time /home/kk/php3/php p5.out > /dev/null
>
>
>kk@poe /tmp/y $ ./testall
>PHP4, P1
>
>real 0m3.023s
>user 0m2.232s
>sys 0m0.635s
>PHP4, P2
>
>real 0m1.880s
>user 0m1.502s
>sys 0m0.295s
>PHP4, P3
>
>real 0m0.830s
>user 0m0.572s
>sys 0m0.215s
>PHP4, P4
>
>real 0m2.212s
>user 0m1.632s
>sys 0m0.485s
>PHP4, P5
>
>real 0m1.508s
>user 0m1.102s
>sys 0m0.315s
>PHP3, P1
>
>real 0m2.790s
>user 0m2.262s
>sys 0m0.455s
>PHP3, P2
>
>real 0m2.321s
>user 0m1.822s
>sys 0m0.395s
>PHP3, P3
>
>real 0m0.600s
>user 0m0.422s
>sys 0m0.165s
>PHP3, P4
>
>real 0m2.267s
>user 0m1.842s
>sys 0m0.315s
>PHP3, P5
>
>real 0m1.988s
>user 0m1.232s
>sys 0m0.245s
>
>
>--
>Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
>Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
>Using PHP3? See our web development library at
>http://phplib.shonline.de/ (GPL)
>
>
---
Andi Gutmans <andi@zend.com>
ICQ: 1568297
PGP: finger andi@vipe.technion.ac.il
--
PHP 4 Beta