[ENH][VM] primitiveCopyObject-ar [er] [et] [cd] [sm]
pinkney_b at aircom.co.za
pinkney_b at aircom.co.za
Fri Dec 5 22:52:38 UTC 2003
Hi,
>A benchmark (using PasteUpMorph) shows that the primitive is about 60 times
>faster than the existing method:
I have just build a Win32 VM using VMMaker3.7a and this changeset.
I tested the change in a 3.7a-5596 image.
It is definately a lot quicker.
I used Andreas's test:
m := PasteUpMorph new.
[1 to: 100000 do:[:i| copy := m clone. m copyFrom: copy]] timeToRun.
My results were
Without primitive: 6392 6404 6438 6417 6417 6401 6372 = avg 6406ms
With primitive: 74 73 73 73 73 74 75 73 69 = avg 3ms
The VM code changes look fine to my weary eye; I have absolutely no idea if
this will make a whole system snappier but it definately speeds this test
up.
Regards,
Brent
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
More information about the Squeak-dev
mailing list
|