4 * WARNING! Always test on a 100% idle system. Note that some tests
5 * may return 0 or negative results, due to pipeline effects.
7 * $DragonFly: src/test/cpuperf/cputest.c,v 1.1 2004/02/09 18:08:54 dillon Exp $
12 extern char test_str[];
17 main(int ac, char **av)
24 printf("CPUTEST %s\n", test_str);
28 if ((i & 65535) == 0 && get_timing() > 1000000)
33 for (i = 0; i < ttl; ++i) {
38 for (i = 0; i < ttl; ++i) {
42 stop_timing2(ttl, us2 - us1, "instruction overhead:");