Loading 3x faster with KCP-0220
Alexandre Bergel
bergel at iam.unibe.ch
Tue Apr 27 18:31:50 UTC 2004
Hi!
The SystemNotification mechanism was slowing down the all process of installing changeset. KCP-0220 improves that a lot, and I show it. When I was doing a similar changeset in my corner, I discovered that Nathanael already sent one. So I just give some benchmark instead.
There is two benchmarks, the first present the very famous piece of code:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
t1 := Time millisecondsToRun: [1 to: 600 do: [:i| Object compile: 'bar', i printString, ' 1 + 2 + 3 + 4 + 5. ^ 100 factorial']].
Transcript show: 'Time to compile 600 methods: ', t1 printString; cr.
t2 := Time millisecondsToRun: [1 to: 600 do: [:i| Object organization classify: (#bar , i printString) asSymbol under: #'dummy-test']].
Transcript show: 'Time to classify 600 methods: ', t2 printString; cr.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Without the changeset (in a fresh 5878 for instance), the result in the transcript is:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Time to compile 600 methods: 15461
Time to classify 600 methods: 14907
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
and with the change it is:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Time to compile 600 methods: 3434
Time to classify 600 methods: 3350
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Second benchmark, loading the refactoring browser:
Time millisecondsToRun: [self installFileNamed: 'Refactory-md.3.7.32.mcz']
Gives 103250 ms on a fresh 5878 image, and only 23809 ms with the changeset so 77% faster (!)
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Squeak-dev
mailing list
|