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

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

2007-11-06 Thread Christoph Boget
Consider the following test code: '; $startTime = microtime( TRUE ); $foundCount = 0; for( $i = 0; $i <= 1; $i++ ) { $date = microtime( TRUE ); $key = rand( $date, $date * rand( 1, 5000 )); if( array key exists( $key, $myArray )) { $foundCount++; } } $e

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

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

2005-11-26 Thread Andrei Verovski (aka MacGuru)
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 STL callbacks. But unlike C++, PHP scripts are interpreted, so pointer arithmetic will work o

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

[PHP] Benchmarking a script

2004-06-23 Thread Anguz
Hello, I have a script I am optimizing and want to compare the before and after in speed. So I wrote a few lines to loop this script but I have a problem. In the script I'm optimizing there's some function definitions and when the script starts the second iteration it throws an error because th

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
talling .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] >

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
Sent: Monday, September 08, 2003 2:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Benchmarking PHP vs ASP.net Hello, 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 f

[PHP] Benchmarking PHP vs ASP.net

2003-09-08 Thread Sid
Hello, 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

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

[PHP] Benchmarking

2003-03-25 Thread reven
Hi, 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? Thanks, Reven -- PHP General Mailing List (htt

[PHP] benchmarking used memory

2003-01-13 Thread peio popov
Hi, I would like to know if there is way to measure how much memory a script uses during execution. Althought threre is no such function in the manual, in my opinion there must be some indication how much memory is used because of the memory_limit directive in the php.ini file. So if php is able

[PHP] php benchmarking suite

2002-07-23 Thread George Schlossnagle
Is anyone aware of a php benchmarking suite comparable in functionality to perls Benchmark.pm? // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100

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

[PHP] Benchmarking a site...

2002-07-11 Thread Rodolfo Gonzalez
Hi, 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?. Thank you. Rodolfo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] benchmarking php scripts

2002-01-16 Thread Eugene Lee
Is there a way to benchmark a PHP script to see how intensive it is? For example, execution time, CPU/RAM/disk usage, etc. Thanks in advance. -- Eugene Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e