[squeak-dev] Teleplace Cog VMs are now available

Levente Uzonyi leves at elte.hu
Wed Jul 7 01:34:38 UTC 2010


On Wed, 23 Jun 2010, Denis Kudriashov wrote:

> Hello.
>
> Cog performance is incredible. My application improved 3 times speedup. And
> I now does not need special caching logic in my program.
>
> But I found very strange behavior in xml dom parsing of big text with many
> russian text (by XML-Parser XMLDOMParser class).
>
> russionXml := String streamContents: [:s | s nextPutAll: '<root>'.
>    1000 timesRepeat: [
>        s nextPutAll: '<item>'.
>        s nextPutAll: '?????????'.
>        s nextPutAll: '</item>'].
>    s nextPutAll: '</root>'
>    ].
>
> [XMLDOMParser parseDocumentFrom: russionXml] timeToRun .

I thought it's time to make use of the profiler, so I tried the same 
tests 
in a Squeak trunk image (4.2alpha-10280). To reduce the noise I ran the 
test 5 times:

russionXml := String streamContents: [:s | s nextPutAll: '<root>'.
     1000 timesRepeat: [
         s nextPutAll: '<item>'.
         s nextPutAll: '.........'.
         s nextPutAll: '</item>'].
     s nextPutAll: '</root>'
     ].
((1 to: 5) collect: [ :run |
 	[ XMLDOMParser parseDocumentFrom: russionXml readStream ] timeToRun ]) average asFloat

My results are:
SqueakVM: 73.4
CogVM: 17.6

So CogVM is more than 4x faster than SqueakVM for this test.


Levente

>
> In pharo 1.1 I have
>
> 567 ms with old VM.
> 6673 ms with Cog VM.
>
> But all other stuff that I tested work faster with Cog (at 3-4 times
> faster).
>



More information about the Squeak-dev mailing list