Re: Method call overhead
| From: | Michael Wallner | Date: | Wed, 03 Jun 2015 07:50:27 +0000 |
| Subject: | Re: Method call overhead | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86472@lists.php.net to get a copy of this message | ||
> On 03 06 2015, at 05:30, Bishop Bettini <bishop@php.net> wrote:
> My question though is on relative times. Method call overhead is
> consistently 50% to 150% over a direct call. Is my experiment invalid, or
> is this overhead expected? Is the overhead in the allocation,
> deallocation, GC?
I’suggest you use a tool like valgrind’s callgrind (and visualize with e.g. kcachegrind).
Regards,
Mike