php - which is a Faster function -
how 1 go calculating of 2 functions faster. there way conclusively in php? there best practice, n times average, , n be?
p.s. i'm looking doesn't require special setup if possible. i'm not looking specialized framework, more primitive way of getting idea.
- you can time scripts microtime. example included in page.
- the larger n, better results.
- keep things caching in mind. if functions request same stuff database, first request may slower rest.
- repeat couple of times (so m tests of n times)
Comments
Post a Comment