[Pharo-project] Counting Messages as a Proxy for Average Execution Time in Pharo

Alexandre Bergel alexandre.bergel at me.com
Thu Apr 28 16:03:38 CEST 2011

Hi Michael,

There is a long discussion in the paper about exactly what you are mentioning here.
The assumptions are made for the current version of Pharo: with its naive VM, not state-of-the-Art JIT, naive compiler, simple GC and so on.

I agree with you that the result I found may not be valid in Java or .Net. However they are for the current Pharo. And apparently, this is not likely to change anything soon.


On 28 Apr 2011, at 08:57, Michael Haupt wrote:

> Alex,
> On 28 April 2011 15:37, Alexandre Bergel <alexandre.bergel at me.com> wrote:
>> Counting messages is, in the average, closely link to the average execution time.
> I believe this is correct only as long as a purely interpreting VM is
> used, even though quick messages add a tiny bit of uncertainty. But
> add a JIT compiler and some inlining, and timeToRun and MessageTally
> are suddenly interesting again.
> Not having read your text, I surely cannot say anything remotely
> conclusive, but the assumption that execution time roughly equals the
> amount of messages sent seems rather naïve once you leave the cosy
> well-predictable niche inhabited by pure interpreters.
> Best,
> Michael

Alexandre Bergel  http://www.bergel.eu

More information about the Pharo-project mailing list