Re: [PHP] Benchmarking check to see if array key is set

2007-11-08 Thread Peter Ford
Ford, Mike wrote: > On 06 November 2007 12:57, Christoph Boget wrote: > >> Consider the following test code: > > [...snip...] > >> Running that I found that >> >> if( isset( $myArray[$key] )) >> >> is faster than >> >> if( array key exists( $key, $myArray )) >> >> is faster than >> >> if( $myAr

RE: [PHP] Benchmarking check to see if array key is set

2007-11-06 Thread Ford, Mike
On 06 November 2007 12:57, Christoph Boget wrote: > Consider the following test code: [...snip...] > Running that I found that > > if( isset( $myArray[$key] )) > > is faster than > > if( array key exists( $key, $myArray )) > > is faster than > > if( $myArray[$key] ) > > To be honest, I wa

Re: [PHP] Benchmarking SPL Iterators vs for / foreach ???

2005-11-27 Thread Curt Zirzow
On Sat, Nov 26, 2005 at 02:36:26PM +0200, Andrei Verovski (aka MacGuru) wrote: > Hi, > > Someone have benchmarked SPL iterators vs for / foreach loops? What is the > performance penalty? > > SPL is �interpreted wrapper� on the top of C++ STL (correct me if I am > wrong), and I am sure it uses S

RE: [PHP] Benchmarking a script

2004-09-14 Thread Gryffyn, Trevor
: Tuesday, September 14, 2004 1:18 PM > To: Gryffyn, Trevor > Subject: Re: [PHP] Benchmarking a script > > > Hello Trevor, > > I really appreciate your reply! In fact I haven't found a way > to do it > yet. I can't really do it the way you suggest cause part of

RE: [PHP] Benchmarking PHP vs ASP.net

2003-09-08 Thread Chris Shiflett
--- Sid <[EMAIL PROTECTED]> wrote: > Many people ask me if ASP.net is faster than PHP. I know for a fact > that it is (because PHP is not optimized). Don't be so easily fooled by hollow terms. Go here: http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm Start with the slide entitled Benc

Re: [PHP] Benchmarking PHP vs ASP.net

2003-09-08 Thread Raditha Dissanayake
Can't resist trowing in my 0.02 either: As dan pointed out it's so much faster to do things in php. When you take into consideration the fact that code on windows never work the way it's supposed you are saving a lot of man hours. Second point worth mentioning is that a given languages/framewo

RE: [PHP] Benchmarking PHP vs ASP.net

2003-09-08 Thread Dan Anderson
> OMG! PHP > is slower. The difference is .035 seconds. Does this matter? Who is > asking which is faster? Why do they care? Are they looking for a reason > to choose one technology over another? I totally agree with you, but I find it funny that many times when talking to people they

RE: [PHP] Benchmarking PHP vs ASP.net

2003-09-08 Thread Sid
> Apparently if you read the terms of agreement when installing .NET > you can't publish your benchmarking results without their > permission. Is Micro$oft©® scared of being beaten? Now I am going to get the benchmarking results by hook or crook! Now I HATE M$. aahh!! I've seen a comparison

RE: [PHP] Benchmarking PHP vs ASP.net

2003-09-08 Thread Jay Blanchard
[snip] Many people ask me if ASP.net is faster than PHP. I know for a fact that it is (because PHP is not optimized). But then what about optimized PHP and compiled ASP.net. This would be a fairer comparison in my opinion. Anyone seen any benchmarks of this? If so please let me know as I would not

RE: [PHP] Benchmarking PHP vs ASP.net

2003-09-08 Thread Angelo Zanetti
Apparently if you read the terms of agreement when installing .NET you can't publish your benchmarking results without their permission. just a thought. would be interesting to see comparison, and maybe also JSP, cold fusion -Original Message- From: Sid [mailto:[EMAIL PROTECTED] Sent: Mo

RE: [PHP] Benchmarking

2003-03-25 Thread John W. Holmes
> I've been making a web ap PHP based, but I fear the number of arrays it > has > is too big. Is there any way to benchmark a script, or are there any > recomendations or standards about how much time execution takes and how > many > resources it takes? The benchmarking is just a matter of subtrac

RE: [PHP] Benchmarking a site...

2002-07-11 Thread John Holmes
> is it possible to benchmark a site/page which uses authentication via PHP > sessions?. If so, could you please tell me some hints to do it?. Why does it matter if the page is authenticated? Get the time at the beginning, the time at the end of the page, subtract smaller from larger, and you've