richr@iddic.UUCP (Rich Rodgers) (10/11/85)
*** REPLACE THIS LINE WITH YOUR RESULTS *** Some Facts: The Amiga reads a 32K file in 4.39 seconds The Amiga writes a 32K file in 6.20 seconds The Amiga draws 142,020 pixels/second A Challenge Do the following tests on your favorite computer, and POST the results. May the best computer win!!! The Algorithms: The following algorithm was done on the Amiga with the native Lattice C Compiler. It writes 64 512 byte buffers, then reads 64 512 byte buffers. for (i = 0; i < 512; i++) p[i] = 'a'; fp = fopen("df0:data", "w"); CurrentTime(&Seconds, &Micros); for (i = 0; i < 64; i++) nact = fwrite(p, 512, 1, fp); ret = fclose(fp); CurrentTime(&Seconds2, &Micros2); printf("%d %d %d %d", Seconds, Seconds2, Micros, Micros2); fp = fopen("df0:data", "r"); CurrentTime(&Seconds, &Micros); for (i = 0; i < 64; i++) nact = fread(p, 512, 1, fp); ret = fclose(fp); CurrentTime(&Seconds2, &Micros2); printf("%d %d %d %d", Seconds, Seconds2, Micros, Micros2); A while back the following message was posted to net.micro.mac: >From: saldana@cernvax.UUCP (saldana) Newsgroups: net.micro.mac Subject: Mac line drawspeed Message-ID: <198@cernvax.UUCP> Date: 9 Aug 85 00:56:15 GMT I made a benchmark to find out how many pixel/sec a Mac could draw. I also ran the same benchmark on the Apollo workstations we have. Algorithm: /* draw 8000 vectors of 200 pixels long with a skew. set by offset */ x1 = 100 - offset; y1 = 100 x2 = 100 + offset y2 = 300 for (i = 0; i < 20; i++) { PenPat(black); for (j = 0; j < 200; j++) { MoveTo(x1, y1); LineTo(x2, y2); x1++; x2++; } PenPat(white); for (j = 0; j < 200; j++) { MoveTo(x1, y1); LineTo(x2, y2); x1--; x2--; } } results: ******************* Rich Rodgers Amiga results ****************************** Amiga (68000, Lattice C) offset = 0 139,542 pix/sec = 1 142,020 pix/sec = 20 142,020 pix/sec = 100 142,020 pix/sec ******************* Rich Rodgers Amiga results ****************************** Mac (68000, Aztec C) offset = 0 121000 pix/sec = 1 8500 pix/sec !!! > 1 8500 pix/sec !!! Apollo DN300 (68010, domain C) offset = 0 83000 pix/sec = 1 69500 pix/sec = 20 68500 pix/sec = 100 60000 pix/sec Apollo DN550 (68010+graph.processor) = 0 327000 pix/sec = 1 327000 pix/sec = 20 327000 pix/sec = 100 327000 pix/sec Fons Rademakers p-mail: EP Division CERN CH-1211 Geneva 23 Switzerland e-mail: ...{seismo,philabs,decvax,...}!mcvax!cernvax!saldana -- Rich Rodgers tektronix!iddic!richr