Another Challenge [message #148612] |
Thu, 24 October 1985 15:36 |
richr
Messages: 14 Registered: August 1985
Karma: 0
|
Junior Member |
|
|
Article-I.D.: iddic.2259
Posted: Thu Oct 24 15:36:55 1985
Date-Received: Sat, 26-Oct-85 05:28:30 EDT
Distribution: net
Organization: Tektronix, Beaverton OR
Lines: 81
Xref: watmath net.micro.amiga:495 net.micro.atari:1497 net.micro.mac:3149
From: richr
[color=blue]> Article 334 of net.micro.amiga:[/color]
[color=blue]> [/color]
[color=blue]> Some Facts:[/color]
[color=blue]> The Amiga reads a 32K file in 4.39 seconds[/color]
[color=blue]> The Amiga writes a 32K file in 6.20 seconds[/color]
[color=blue]> The Amiga draws 142,020 pixels/second[/color]
[color=blue]> [/color]
[color=blue]> A Challenge[/color]
[color=blue]> Do the following tests on your favorite computer, and POST the results.[/color]
[color=blue]> May the best computer win!!![/color]
No one has yet offered any response to my challenge! We are particularly
interested in seeing how the Atari does on this benchmark, given the
preponderance of subjective claims foating around.
I hope someone can take the time to run these and post the results,
rather than continue to fan the flames of speculation that flood
these groups. I can only assume that they have not yet appeared because
no one has bothered to do it, rather than because of the results they
achieved. Of course, I have been known to be wrong on occasion...
Richard Rodgers
tektronix!iddic!richr
PS: Perhaps I should post the sources in Basic....
[color=blue]> [/color]
[color=blue]> The Algorithms:[/color]
[color=blue]> [/color]
[color=blue]> The following algorithm was done on the Amiga with the native Lattice C[/color]
[color=blue]> Compiler. It writes 64 512 byte buffers, then reads 64 512 byte buffers.[/color]
[color=blue]> [/color]
[color=blue]> for (i = 0; i < 512; i++) p[i] = 'a';[/color]
[color=blue]> fp = fopen("df0:data", "w");[/color]
[color=blue]> CurrentTime(&Seconds, &Micros);[/color]
[color=blue]> for (i = 0; i < 64; i++)[/color]
[color=blue]> nact = fwrite(p, 512, 1, fp);[/color]
[color=blue]> ret = fclose(fp);[/color]
[color=blue]> CurrentTime(&Seconds2, &Micros2);[/color]
[color=blue]> printf("%d %d %d %d", Seconds, Seconds2, Micros, Micros2);[/color]
[color=blue]> [/color]
[color=blue]> fp = fopen("df0:data", "r");[/color]
[color=blue]> CurrentTime(&Seconds, &Micros);[/color]
[color=blue]> for (i = 0; i < 64; i++)[/color]
[color=blue]> nact = fread(p, 512, 1, fp);[/color]
[color=blue]> ret = fclose(fp);[/color]
[color=blue]> CurrentTime(&Seconds2, &Micros2);[/color]
[color=blue]> printf("%d %d %d %d", Seconds, Seconds2, Micros, Micros2);[/color]
[color=blue]> [/color]
[color=blue]> alternate source: [/color]
[color=blue]> Algorithm:[/color]
[color=blue]> /* draw 8000 vectors of 200 pixels long with a skew. set by offset */[/color]
[color=blue]> [/color]
[color=blue]> x1 = 100 - offset;[/color]
[color=blue]> y1 = 100[/color]
[color=blue]> x2 = 100 + offset[/color]
[color=blue]> y2 = 300[/color]
[color=blue]> [/color]
[color=blue]> for (i = 0; i < 20; i++) {[/color]
[color=blue]> PenPat(black);[/color]
[color=blue]> for (j = 0; j < 200; j++) {[/color]
[color=blue]> MoveTo(x1, y1);[/color]
[color=blue]> LineTo(x2, y2);[/color]
[color=blue]> x1++;[/color]
[color=blue]> x2++;[/color]
[color=blue]> }[/color]
[color=blue]> PenPat(white);[/color]
[color=blue]> for (j = 0; j < 200; j++) {[/color]
[color=blue]> MoveTo(x1, y1);[/color]
[color=blue]> LineTo(x2, y2);[/color]
[color=blue]> x1--;[/color]
[color=blue]> x2--;[/color]
[color=blue]> }[/color]
[color=blue]> }[/color]
[color=blue]> [/color]
--
Rich Rodgers
tektronix!iddic!richr
|
|
|
Re: Another Challenge [message #148650 is a reply to message #148612] |
Mon, 28 October 1985 15:56 |
frank
Messages: 48 Registered: May 2013
Karma: 0
|
Member |
|
|
Article-I.D.: sagan.168
Posted: Mon Oct 28 15:56:14 1985
Date-Received: Fri, 1-Nov-85 00:15:06 EST
References: <2259@iddic.UUCP>
Distribution: net
Organization: MicroPro Int'l Corp., San Rafael, CA
Lines: 49
Xref: linus net.micro.amiga:4408 net.micro.atari:1463 net.micro.mac:3173
Summary: IBMPC results
In article <2259@iddic.UUCP>, richr@iddic.UUCP (Rich Rodgers) writes:
[color=teal]>> Some Facts:[/color]
[color=teal]>> The Amiga reads a 32K file in 4.39 seconds[/color]
[color=teal]>> The Amiga writes a 32K file in 6.20 seconds[/color]
[color=teal]>> The Amiga draws 142,020 pixels/second[/color]
[color=teal]>> [/color]
[color=teal]>> A Challenge[/color]
[color=teal]>> Do the following tests on your favorite computer, and POST the results.[/color]
[color=teal]>> May the best computer win!!![/color]
[color=blue]> No one has yet offered any response to my challenge! We are particularly[/color]
[color=blue]> interested in seeing how the Atari does on this benchmark, given the[/color]
[color=blue]> preponderance of subjective claims foating around.[/color]
Not all benchmarks are created equal...
Perhaps not everyone responds to a challenge in the same way -- I tried the
given algorithm (Lattice C and my own library) on my IBMPC and found that
my IBMPC:
writes a 32K file in 14.28 seconds
reads a 32K file in 13.45 seconds
/* all times given for standard floppy disk */
However, if I twiddle my disk buffers around, my IBMPC:
writes a 32K file in 14.28 seconds
reads a 32K file in 2.96 seconds
This led me to rewrite the algorithm to take advantage of the many layers
of disk buffering I use:
write(fd, p, 0x8000); /* the hard way... */
read(fd, p, 0x8000);
With the new algorithm, I find that my IBMPC:
writes a 32K file in 2.41 seconds
reads a 32K file in 1.43 seconds
My point is simple -- most benchmark programs have little relation to
"real world" problems. I would never use fwrite()/fread() nor 512 byte
blocks if I wanted to write or read a file in a hurry. (:-)
--
frank
... Frank Whaley, MicroPro Product Development
{dual,hplabs,glacier,lll-crg}!well!micropro!sagan!frank
"The heights by great men reached and kept,
were not attained by sudden flight.
But they, while their companions slept,
were toiling upward in the night."
-Longfellow
|
|
|
Re: Another Challenge [message #148664 is a reply to message #148612] |
Thu, 31 October 1985 04:23 |
howard
Messages: 29 Registered: March 2013
Karma: 0
|
Junior Member |
|
|
Article-I.D.: amdahl.2170
Posted: Thu Oct 31 04:23:52 1985
Date-Received: Sat, 2-Nov-85 03:44:37 EST
References: <2259@iddic.UUCP>
Reply-To: howard@amdahl.UUCP (Howard C. Simonson)
Distribution: net
Organization: Amdahl Corp, Sunnyvale CA
Lines: 13
Keywords: Wake up and smell the coffee
Xref: watmath net.micro.amiga:552 net.micro.atari:1540 net.micro.mac:3212
I suppose I also find it interesting that no one has responded to your request
for benchmarks. Could it be that the speed at which lines can be drawn
on the screen isn't important. Doesn't everybody buy a computer to access a
32K file as fast as possible? Hmm, maybe people really buy these machines
( and their software ) to acomplish a task, to get their work done, or just
plain enjoyment. Definitely a radical concept. This will all come clear to
you once there is software available for your machine too.
--
Time for a new catchy phrase in my Howard C. Simonson
.signature, now if I could only ...{dragon,hplabs,ihnp4,nsc}!amdahl!howard
think of one...
[ Opinion? What opinion. I think you have the wrong guy... ]
|
|
|