Re: [PHP-DEV] Method call overhead

2015-06-05 Thread Rowan Collins
Sara Golemon wrote on 04/06/2015 22:55: On Jun 4, 2015, at 10:00, Rowan Collins wrote: : http://3v4l.org/l75kf HHVM's percentages are lower primarily because its for loop measure is much slower in absolute terms. At the risk of distracting from the central topic, I'd like to point out that

Re: [PHP-DEV] Method call overhead

2015-06-04 Thread Sara Golemon
> On Jun 4, 2015, at 10:00, Rowan Collins wrote: > : http://3v4l.org/l75kf > > HHVM's percentages are lower primarily because its for loop measure is much > slower in absolute terms. > At the risk of distracting from the central topic, I'd like to point out that HHVM's times are almost certai

Re: [PHP-DEV] Method call overhead

2015-06-04 Thread Rowan Collins
Marc Bennewitz wrote on 04/06/2015 10:01: http://3v4l.org/eJK07 See the total amount of execution time recorded. If we really need pure execution time, then it should record "for loop" execution time with empty body. -> incl. displaying the time for the loop: http://3v4l.org/1vZJI Percentages

Re: [PHP-DEV] Method call overhead

2015-06-04 Thread Marc Bennewitz
On 06/04/2015 06:35 AM, Yasuo Ohgaki wrote: Hi Brian, On Thu, Jun 4, 2015 at 7:33 AM, Brian Moon wrote: This is a better representation of what you are trying to show. It removes all the magic call back stuff that could be adding to the slowness you are seeing. In addition, it does not crea

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Yasuo Ohgaki
On Thu, Jun 4, 2015 at 1:35 PM, Yasuo Ohgaki wrote: > On Thu, Jun 4, 2015 at 7:33 AM, Brian Moon wrote: > >> This is a better representation of what you are trying to show. It >> removes all the magic call back stuff that could be adding to the slowness >> you are seeing. In addition, it does no

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Yasuo Ohgaki
Hi Brian, On Thu, Jun 4, 2015 at 7:33 AM, Brian Moon wrote: > This is a better representation of what you are trying to show. It removes > all the magic call back stuff that could be adding to the slowness you are > seeing. In addition, it does not create a new object on every call for the > obj

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Sara Golemon
On Wed, Jun 3, 2015 at 3:33 PM, Brian Moon wrote: > On 6/2/15 22:30 , Bishop Bettini wrote: >> I've measured the overhead for method calls in a variety of environments >> (Amazon, Travis, and 3v4l). The results are reliable and here's 3v4l >> . >> >> Some observations. Fir

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Brian Moon
On 6/2/15 22:30 , Bishop Bettini wrote: Hi! I've measured the overhead for method calls in a variety of environments (Amazon, Travis, and 3v4l). The results are reliable and here's 3v4l . Some observations. First, as expected, direct calls are faster than static object

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Julien Pauli
On Wed, Jun 3, 2015 at 4:29 PM, Sara Golemon wrote: > > > On Jun 3, 2015, at 00:50, Michael Wallner wrote: > > > >>> On 03 06 2015, at 05:30, Bishop Bettini wrote: > >> > >> My question though is on relative times. Method call overhead is > >> consistently 50% to 150% over a direct call. Is m

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Sara Golemon
> On Jun 3, 2015, at 00:50, Michael Wallner wrote: > >>> On 03 06 2015, at 05:30, Bishop Bettini 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 ov

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Michael Wallner
> On 03 06 2015, at 05:30, Bishop Bettini 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 us

[PHP-DEV] Method call overhead

2015-06-02 Thread Bishop Bettini
Hi! I've measured the overhead for method calls in a variety of environments (Amazon, Travis, and 3v4l). The results are reliable and here's 3v4l . Some observations. First, as expected, direct calls are faster than static object calls, which are faster than object calls.