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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -