AA performance again

Lutger lutger.blijdestin at gmail.com
Tue Jun 10 03:20:16 PDT 2008


bearophile wrote:
...

I have some different timings:

dmd without GC:
real 7.51
user 5.25
sys 0.79

dmd with GC:
real 206.53
user 167.50
sys 2.14

python version 1 not using psycho:
real 8.39
user 5.81
sys 1.06

python version 2:
real 4.86
user 3.15
sys 0.82

python version 3:
real 5.74
user 3.58
sys 1.10

I used python version 2.5.2 and dmd with the Tango runtime.

Here's the D version:

import tango.core.Memory;

void main() {

    GC.disable();
    const uint N = 20_000_000;
    size_t[long] aa;
    for (uint i; i < N; ++i)
        aa[i] = 0;
}







More information about the Digitalmars-d mailing list