Re: Strange benchmark behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yeah, it does that sometimes.  But over 1 million iterations a 0.2 second 
difference is negligible, and easily explained by random events in the 
environment (other processes on the box, etc.)  It's the 25% difference I'm 
getting on just one box that is confusing the hell of of me. :-)

On Thursday 18 October 2007, Nathan Nobbe wrote:
> 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


-- 
Larry Garfield			AIM: LOLG42
larry@xxxxxxxxxxxxxxxx		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux