Here the Pharo benchs

100 "processes" benchSwitch: 5. "seconds"

1) "No changes to Processor"
'2,520,509 switches/sec'
'2,520,590 switches/sec'
'2,413,224 switches/sec'

2) "After changes to Processor, but using old VM primitives"
'1,106,806 switches/sec'
'1,110,870 switches/sec'
'1,116,981 switches/sec'
'1,204,289 switches/sec'

"After installing new Processor"

'152,779 switches/sec'
'150,913 switches/sec'
'152,608 switches/sec'
'153,844 switches/sec'

Its interesting that transition from 1) to 2)
which just increasing a send chain to get to primitive, like:

Semaphore>>wait >> primitive
Semaphore>>wait >>
Processor>>waitForSemaphore:>>Semaphore>>primitiveWait>>primitive

downgrades a bench numbers by more than a 2x factor.

2009/4/30 Stéphane Ducasse <[email protected]>:
> I think that this is a good idea to see how such parts of Ssqueak/
> pharo can be improved in the future.
>
>
> On Apr 30, 2009, at 4:15 PM, Igor Stasenko wrote:
>
>> A quick comparion for Delays:
>>
>>       delay := Delay forMilliseconds: 1.
>>       bag := Bag new.
>>       1000 timesRepeat:[bag add: [delay wait] timeToRun].
>>       bag sortedCounts
>>
>> on my 4-core box it yields:
>>
>> - with AdvancedProcessorScheduler install
>>  a SortedCollection(951->2 49->1)
>>
>> - with Processor fallbackToOldScheduler
>> a SortedCollection(953->2 47->1)
>>
>> - with old VM
>>  a SortedCollection(952->2 47->1 1->3)
>>
>> not much overhead huh? :)
>>
>> But Delay's code now can be refactored, which will simplify it
>> seriously, because it could run in interrupt process and take no care
>> for concurrency issues.
>>
>>
>>
>> 2009/4/30 Igor Stasenko <[email protected]>:
>>> i added a new changeset in mantis which deals with callbackEnter:
>>> code.
>>> Unfortunately, a callback handling , to work correctly needs an
>>> image-side changes as well.
>>>
>>> P.S. Having fun to watch how scheduler handling signals, by
>>> inspecting
>>> Process and selecting its 'signals' ivar :)
>>>
>>> --
>>> Best regards,
>>> Igor Stasenko AKA sig.
>>>
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko AKA sig.
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to