[Shootout-list] X per second scoring system, resume

Bengt Kleberg bengt.kleberg@ericsson.com
Thu, 30 Sep 2004 14:49:12 +0200


Einar Karttunen wrote:
> On 30.09 14:06, Bengt Kleberg wrote:
> 
>>i could be wrong here. could you explain how an ''internal timer'' based 
>>approach would be more easily disturbed by gc, compared to the current 
>>shootout way of doing things?
> 
> 
> The current method measures "How much time does it take to do N amount
> of work." The new methology would be (if I understand correctly) 
> "How much work was done in N seconds". 
> 
> Given two identical performance languages and different luck we get:
> 
> ...WWGWWWGWWW... 8 work 
> ...WGWWWGWWWG... 7 work
> 
> W = work being done, G = garbage collection

let me see if i have understood:

given a language that handles a ''i shold become 8, by doing w that 
makes i one unit larger'' problem like this (ie ww is 2 seconds of work):

wwwwwwgwggw

and one that does

wwggwwwgwww

they will both take the same total amount of time to reach 8, but the 
first one will have reached a higher value of i before the second one. 
if we measure at time = 6, the first language is at 6, but the second 
language is at 4.

is this sort-of true?


bengt