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
Denber.wbst@XEROX.ARPA (10/14/85)
"Do the following tests on your favorite computer, and POST the results. ... /* draw 8000 vectors of 200 pixels long with a skew. set by offset */" Well, here are some numbers from my favorite computer, a Xerox 1108 (Dandelion) running Interlisp-D (Intermezzo release) with the following translation of the C code given: (LAMBDA (OFFSET) (PROG ((X1 100) (Y1 100) (X2 100) (Y2 300)) (add X1 (IMINUS OFFSET)) (add X2 OFFSET) (for I to 20 do (for J to 200 do (DRAWLINE X1 Y1 X2 Y2 1 (QUOTE REPLACE) TWINDOW) (add X1 1) (add X2 1)) (for J to 200 do (DRAWLINE X1 Y1 X2 Y2 1 (QUOTE ERASE) TWINDOW) (add X1 -1) (add X2 -1))))) offset pix/sec. 0 45,198 1 5000 20 4863 100 4336 I understand that the 1109 (Dandetiger) is supposed to draw lines an order of magnitude faster than the 1108. Disclaimer: The above does not reflect the opinions of my employer, or maybe even me either. In fact, it may only be a hallucination and have no connection with any events in the real world at all. Or maybe a monkey escaped from the zoo, broke into my office, booted my machine, and pounded it out on the keyboard. - Michel
ian@wcwvax.UUCP (Ian Kemmish) (10/17/85)
> "Do the following tests on your favorite computer, and POST the >results. ... /* draw 8000 vectors of 200 pixels long with a skew. set by >offset */" OK folks. On an WCW MG-1 workstation, I got this yesterday: Offset Mono display Prototype colour display 0 189,000 pixels/sec. 150,000 pixels/sec. 1 113,000 136,000 20 113,000 136,000 100 114,000 137,000 The colour software is only one day old! (For those who are interested, it's slated to be released at the end of the year). Note, there is no hardware assist for line drawing. Disclaimer: _ \ \ \ \ / are far more interested in my code than \/\_\/\/ in my opinions. Ian.