Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CPU results on Freescale i.MX



I wrote a simple program to 'stress-test' a cpu. Basically it is a program that
computes a couple of sqrt roots a billion or so times, which I have used as
a (crude?) benchtest. 

#include <stdio.h>
#include <math.h>

#define MAX         1073741824
#define INTERVAL    4194304

int main(int argc, char *argv[])
{
    int i;
    double val = 0.0;

    for (i = 0; i < MAX; i++) {
        val += sqrt(sqrt(M_PI * cos((double)i)) * i);
    
        if (!(i % INTERVAL))
            printf("%d\n", i);
    }

    printf("%f\n", val);
    return 0;
}


The results are...

Genesi Efika MX (Smarttop) with Freescale i.MX 515 (ARMv7 processor rev5 (v7l))
running Ubuntu 10.10
    real 37m15.173s
    user 36m37.130s
    sys   0m09.610s


...and for comparison...

Lenovo T61 with Intel T9300 (Intel Core2 Duo @ 2.5GHz)
running Ubuntu 10.04
    real 15m43.094s
    user 15m41.411s
    sys   0m00.056s

Homebuilt with AMD (AMD Athalon dual-core @ 2.5GHz)
running NetBSD 5.1
    real 182.95s (3m02.95s)
    user 182.95s (3m02.95s)
    sys    0.00s



-- 
Christopher Berardi
http://www.natoufa.com/

Be still, and know that I am God (Psalms 46:10)


Home | Main Index | Thread Index | Old Index