Benchmarking

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Benchmarking

Post by hob_goblin »

everybody talks about benchmarking things to tell which is faster

how would i do this?

how would i time it accurately?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

I'm running a debug version of php in a profiler. This doesn't tell me exactly what part of the script took the time but what php functions do. Until now this has been sufficient.
But there are some in-php solutions I've seen (but never used). Most of them need code to be inserted :(

But the question should not be: "Is it fast?" but "Is it fast enough?" ;)
Post Reply