Re: Strange benchmark behavior
| From: | Nathan Nobbe | Date: | Thu, 18 Oct 2007 14:46:04 +0000 |
| Subject: | Re: Strange benchmark behavior | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263314@lists.php.net to get a copy of this message | ||
Larry,
i havent dug into the code or the post much cause im coding away today,
but i did drop you test script on a box of mine and run it. for what its
worth,
heres the results:
nathan@devel ~/working/www $ php testBench.php
Testing __call()
Native Method: 8.62859416008 seconds
Magic Method: 15.2616789341 seconds
Testing __call() with sub-function
Native Method: 8.45631313324 seconds
Magic Method: 31.9451780319 seconds
the native method actually ran faster the second time..
-nathan