0

Don't need accurate, just approximately. Then I can know the performance of this function.

lovespring
  • 18,247
  • 41
  • 98
  • 148

1 Answers1

2

Don't need accurate, just approximately.

You could use memory_get_usage(). Otherwise profile with microtime().

Then I can know the performance of this function.

Relative to what?

What sort of thing are you trying to measure? Donald Knuth once said something about optimisation...

alex
  • 460,746
  • 196
  • 858
  • 974