iPhone Cog Stack VM, performance numbers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

iPhone Cog Stack VM, performance numbers

johnmci
As always it's difficult to determine how best to benchmark. So given:

        | savedMorphs |
        savedMorphs := World submorphs.
        World removeAllMorphs.
        self halt.
        ^ [[10
                timesRepeat: [Browser fullOnClass: Object selector: #yourself].
        World submorphs
                do: [:m |
                        m delete.
                        self currentWorld doOneCycle]]
                ensure: [World addAllMorphs: savedMorphs]] timeToRun inspect


I can say that the Cog Stack VM on the iPhone produces numbers like

48.081 seconds
47.858 seconds

The original VM did:

74.415 seconds
74.257 seconds

making the iPhone COG VM 1.55x faster


A 2.33ghz mac book pro mac vm 5.7b1 does it in about 8.3 seconds
with a COG JIT VM 5.8 that takes 2.6 seconds or about 3.2 faster

--
===========================================================================
John M. McIntosh <[hidden email]>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================

Reply | Threaded
Open this post in threaded view
|

Re: iPhone Cog Stack VM, performance numbers

Andreas.Raab
On 7/12/2010 12:01 PM, John McIntosh wrote:

> I can say that the Cog Stack VM on the iPhone produces numbers like
>
> 48.081 seconds
> 47.858 seconds
>
> The original VM did:
>
> 74.415 seconds
> 74.257 seconds
>
> making the iPhone COG VM 1.55x faster
>
>
> A 2.33ghz mac book pro mac vm 5.7b1 does it in about 8.3 seconds
> with a COG JIT VM 5.8 that takes 2.6 seconds or about 3.2 faster

All of this is exactly in line with our past numbers. Basically, the
stack VM gives a 1.5x in performance, the JIT adds another 2x on top of
that for a total of 3x.

Cheers,
   - Andreas