Gossamer Forum
Home : General : Internet Technologies :

test time to execute php script from unix shell

Quote Reply
test time to execute php script from unix shell
I know how to test the speed of a perl script by using:

time ./script.cgi > /dev/null

But I'm not sure if there's a similarly easy way to test the speed of a php script. I can do benchmarking tests easily enough, I guess, but it would be handy to have such a direct approach available from the command line.

Thanks for any suggestions!

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Quote Reply
Re: [hennagaijin] test time to execute php script from unix shell In reply to
time php ./script.php > /dev/null

Need to have php compiled as a binary though..

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] test time to execute php script from unix shell In reply to
Simple enough, and works perfectly - thanks!

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund