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
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
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
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
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
: 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
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
--- 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
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
> 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
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]
>
[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
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
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
> 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
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
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
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
> 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
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
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
21 matches
Mail list logo