[ANN] Nile 0.9.0
"Martin v. Löwis"
martin at v.loewis.de
Sun Jun 10 17:38:18 UTC 2007
>> The best way to measure in this kind of scenario is to measure
>> instructions. If the VM would support counting byte code
>> instructions executed, ideally on a per-process basis, you would
>> get a more precise measurement.
> ContextPart class>>tallyInstructions: aBlock
> "This method uses the simulator to count the number of occurrences of
> each of the Smalltalk instructions executed during evaluation of
> Results appear in order of the byteCode set."
Very interesting. It shouldn't be necessary each block more than once
under this method; ideally, two subsequent runs should give the same
numbers. Interpreting the numbers might be a challenge if one
competitor has more instructions of one kind, but fewer instructions
of another kind, than the other competitor.
More information about the Squeak-dev