0

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

lovespring
  • 19,051
  • 42
  • 103
  • 153

1 Answers1

1

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
  • 479,566
  • 201
  • 878
  • 984