[m-dev.] Version arrays - improved results

Ralph Becket rafe at cs.mu.OZ.AU
Wed Jan 28 17:56:30 AEDT 2004


This is the last set of benchmarks I'll post on version arrays until I
work out why programs fall over with more iterations.  But the scores
under hlc.gc look very encouraging (these runs were taken on aral):

REVERSING AN ARRAY

benchmark: 100 reversals of 100000 items
map array time:      38280ms
version array time:   2090ms
ordinary array time:   310ms
    map/version    =    18.31
version/ordinary   =     6.72

benchmark: 1000 reversals of 10000 items
map array time:      18110ms
version array time:   1280ms
ordinary array time:   310ms
    map/version    =    14.14
version/ordinary   =     4.12

benchmark: 10000 reversals of 1000 items
map array time:      12640ms
version array time:   1660ms
ordinary array time:   310ms
    map/version    =     7.61
version/ordinary   =     5.34

benchmark: 100000 reversals of 100 items
map array time:       8150ms
version array time:   1500ms
ordinary array time:   310ms
    map/version    =     5.43
version/ordinary   =     4.83

benchmark: 1000000 reversals of 10 items
map array time:       6550ms
version array time:   1800ms
ordinary array time:   320ms
    map/version    =     3.64
version/ordinary   =     5.61

benchmark: 10000000 reversals of 2 items
map array time:       4610ms
version array time:   3610ms
ordinary array time:   660ms
    map/version    =     1.28
version/ordinary   =     5.46

SUMMING AN ARRAY OF INTS

benchmark: 1000 summations of 100000 items
map array time:      48640ms
version array time:   2400ms
ordinary array time:  1490ms
    map/version    =    20.26
version/ordinary   =     1.61

benchmark: 10000 summations of 10000 items
map array time:      40820ms
version array time:   2370ms
ordinary array time:  1480ms
    map/version    =    17.22
version/ordinary   =     1.60

benchmark: 100000 summations of 1000 items
map array time:      26120ms
version array time:   2370ms
ordinary array time:  1480ms
    map/version    =    11.02
version/ordinary   =     1.60

benchmark: 1000000 summations of 100 items
map array time:      17650ms
version array time:   3200ms
ordinary array time:  1490ms
    map/version    =     5.51
version/ordinary   =     2.15

benchmark: 10000000 summations of 10 items
map array time:      10330ms
version array time:   2510ms
ordinary array time:  1620ms
    map/version    =     4.11
version/ordinary   =     1.55

benchmark: 100000000 summations of 2 items
map array time:      10920ms
version array time:   4960ms
ordinary array time:  3200ms
    map/version    =     2.20
version/ordinary   =     1.55
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list