Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mjr@tis.com (Marcus J Ranum)
Subject: Re: Summary: Alpha Performance
Date: 24 Jun 1993 20:22:31 GMT	[thread overview]
Message-ID: <20d2e7$845@sol.TIS.COM> (raw)
In-Reply-To: 1993Jun24.144119.1@uwovax.uwo.ca

>   Just a tiny observation from someone who doesn't know much detail
>   about KAP or vendor compilers.  I rather suspect that some vendors
>   compilers are already doing some "kap"ping (no tm :-), whether they
>   use KAP (tm) or not.

	Compiler optimization is a different game from what I call
"benchmark-oriented optimization."  I suspect that most of the folks
who work on optimizers use some kind of benchmark against which to
measure the effectiveness of their optimizations. But that's just a
way of seeing how much the optimization helped. There's a world of
difference (IMHO) between an optimization that makes (say) string
copying run 2% faster and an optimization that makes the MATRIX
benchmark 300% faster.

	Does anyone have the SPEC numbers handy for the individual
benchmarks?? I threw 'em away when I decided SPEC wasn't worth
talking about in honest company anymore, but if you look at the
before and after pictures, you'll see that HP and IBM suddenly
picked up something like a 200% improvement on ONE floating point
benchmark. That doesn't usually indicate that someone came up
with a clever general optimization that's going to make most
people's code run faster; that indicates that someone cracked
the benchmark.

	There's a fun story about benchmarks. Byte magazine used
to use sieve of eratosthenes for primes less than 1000 as a
benchmark. Apparently someone as a joke put code in their compiler
to recognize the DFA of the sieve benchmark and simply return
the correct values. They were honest enough to explain the hack
they'd pulled, and everyone was amused. Now, having your compiler
recognize certain common subexpression blocks might be a legitimate
optimization. Having your compiler recognize subexpressions common
to specific benchmarks is pure sleaze - especially if you're a major
computer vendor and you sell systems based on it!!

	We're not talking a minor effect, here. There used to be
a bunch of graphs put out by SPEC showing the performance of each
system on each benchmark. Nice bar graphs. And on some vendors
graphs, the bar for MATRIX was massively bigger than than all
the others. It doesn't take a wizard with a degree in statistics
to realize that a value like that is going to pull the rest of
the benchmark way off where it would otherwise be. Of course
your vendor didn't come to you and tell you, "hey, we have one
HOT BOX for you if you're running MATRIX!!" - no, they tell you
they have a machine that does some big number of SPECmarks.

	Nauseated yet?

	It gets worse. The SPEC rules have something about how
you're supposed to benchmark the machine with available, stock
software. So *SOME* of the vendors shipped KAP. That way, if
all you use your computer to do is run MATRIX, you too can get
some kick a** performance. Neat, huh? But don't try this with
your box-stock compiler. And don't expect KAP to make ALL your
code faster. Sure, it'll help some a bit, but as I said, I've
heard it has even broken code in the past. That's not really
a suprise because I'm sure the folks who did KAP were spending
99% of their time testing it against MATRIX.

	In short, yes, most vendors are working on their
optimizers all the time (or should be) and most likely they
are working on "reasonable" optimizations. It's too expensive
to put support into your general purpose compiler for
breaking benchmarks - that's what consultants who write crap
like KAP are for. SPEC blew it because they didn't blow the
whistle on this game, and now they have lost any credibility
they might have had. I'd trust Norton Utilities "sysinfo"
results as much as SPEC.

	Those of you who already owned systems from the vendors
who are publishing KAP-ized benchmarks: didn't you suddenly
feel your machine get 40% faster from one OS release to another?
Disappointing, huh?


mjr.

PS - Enclosed is the RAP (Ranum Applications Preprocessor) for
applications that are known to produce no output and exit with
a value of zero. Feed your sources through this and it will
preprocess them into an intermediate preprocessed version that
you run through your compiler and optimizer and execute)

main()
{
	printf("main() { exit(0); }\n");
}

I have used this preprocessor on some of my benchmarks and sped
them up drastically. On others, it gives incorrect answers, but
that's OK, the SPEC folks haven't complained....


  parent reply	other threads:[~1993-06-24 20:22 UTC|newest]

Thread overview: 108+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-06-21 14:36 Summary: Alpha Performance Glen Reesor
1993-06-21 21:45 ` Richard M. Venable
1993-06-22 14:35 ` Dileep Bhandarkar
1993-06-22 16:15   ` Glen Reesor
1993-06-22 18:02     ` John D. McCalpin
1993-06-22 19:02       ` Glen Reesor
1993-06-23  4:17         ` Ozan S. Yigit
1993-06-23  4:39           ` Doug Siebert
1993-06-23  9:08           ` Jos van Eijndhoven
1993-06-23 19:54           ` John DiMarco
1993-06-24  2:21             ` Vareck Bostrom
1993-06-24  7:31               ` Jos van Eijndhoven
1993-06-24  8:07                 ` Casper H.S. Dik
1993-06-24 11:46                   ` jesse neri
1993-07-24 12:16                 ` Rob J. Nauta
1993-07-24 17:20                   ` Steve Chapin
1993-07-26 22:17                     ` Summary: Alpha Performance [really, SPEC#/MHz] John R. Mashey
1993-07-28 16:16                       ` Paul Rockwell
     [not found]                         ` <CAwIKv.KFM@odin.corp.sgi.com>
     [not found]                           ` <238teh$k1o@usenet.pa.dec.com>
     [not found]                             ` <CAy7CK.IMy@odin.corp.sgi.com>
1993-08-03 14:45                               ` Summary: Alpha Performance Brent Sterner
     [not found]                     ` <52608@sdcc12.ucsd.edu>
1993-08-02 16:24                       ` Summary: Alpha Performance of Disk Drives oberman
1993-08-07 10:13                         ` DEC suport for vaxen Paul Repacholi
1993-07-25  9:21                   ` Summary: Alpha Performance Jussi Eloranta
1993-07-28  1:55                     ` David Willmore
1993-07-26 14:03                   ` Jeffrey L. Sue
     [not found]                     ` <1993Jul30.153910.11071@Rapnet.Sanders.Lockheed.Com>
1993-08-02  8:01                       ` Luke Brennan
1993-08-03 15:33                         ` VMS Robustness Tony Burzio
1993-08-03 17:52                           ` Mark H. Wood
1993-08-04 12:39                             ` Ron Fox
1993-08-03 18:25                           ` Dan Wing
1993-08-03 19:05                             ` Marcus J Ranum
1993-08-03 19:56                               ` Jeff Hayward
1993-08-03 21:43                                 ` Weathering the network storm (Was: VMS Robustness) Mark E. Levy
1993-08-04  3:54                                   ` Jerry Weiss
1993-08-04  5:43                                     ` Carl D. Perkins
1993-08-04  7:36                                       ` Jerry Weiss
1993-08-04 12:48                                         ` Ron Fox
1993-08-04 13:16                                           ` Jerry Weiss
1993-08-04 16:52                                             ` Jack Twilley
1993-08-05 13:40                                               ` Bill Bochnik (Info Systems)
1993-08-05 17:50                                               ` vaxs09
1993-08-06 12:37                                                 ` Alain Martineau
1993-08-07 11:25                                               ` Paul Repacholi
1993-08-07 17:37                                                 ` Jack Twilley
1993-08-07 11:06                                             ` Paul Repacholi
1993-08-04 13:24                                         ` Marcus J. Ranum
1993-08-05 14:03                                           ` Karl Lehenbauer
1993-08-04 15:49                                         ` Clark Merrill
1993-08-04 16:44                                           ` Johnny Billquist
1993-08-07 19:23                                             ` Anders Ostling
1993-08-04 16:53                                         ` Chris Kalisiak
1993-08-04 19:25                                           ` Jerry Weiss
1993-08-04 12:37                                       ` Christopher Lishka
1993-08-04 16:04                                         ` Dan Wing
1993-08-05 13:52                                       ` Karl Lehenbauer
1993-08-06  4:31                                         ` Carl D. Perkins
1993-08-04 12:44                                 ` VMS Robustness Ron Fox
1993-08-04 13:51                                 ` Brian Tillman
1993-08-05  3:03                                 ` system
1993-08-05 15:17                                   ` Clark Merrill
1993-08-05 13:47                               ` Karl Lehenbauer
1993-08-04  0:17                             ` Terry Kennedy, Operations Mgr.
1993-08-04 18:57                               ` John Hascall
1993-08-04 17:38                             ` FTP sites for ALPHA software??? The Artist
1993-08-05  3:08                           ` VMS Robustness mark
1993-07-26 18:59                   ` Summary: Alpha Performance Greg Franks
1993-07-26 19:33                     ` Jussi Eloranta
1993-06-24  3:04           ` Ozan S. Yigit
1993-06-24 10:56           ` James Bonfield
1993-06-25  6:02           ` David Burren [Athos]
1993-06-23 22:06         ` Graphics Users
1993-06-22 19:58       ` furio ercolessi
1993-06-22 18:44     ` Alvis Harding Jr.
1993-06-23 15:11     ` Patrick F. McGehearty
1993-06-23 21:30       ` Glen Reesor
1993-06-24  2:13         ` John Grabowski
1993-06-24  8:00           ` Jos van Eijndhoven
1993-06-27 12:54         ` Paul Repacholi
1993-06-24 23:39       ` How does one profile? (was Re: Summary: Alpha Performance) John Lovell
1993-06-24 15:08   ` Summary: Alpha Performance Bob Koehler
1993-06-24 16:40     ` Glen Reesor
1993-07-02 21:05       ` Dileep Bhandarkar
1993-06-24 16:42     ` Marcus J Ranum
1993-06-24 18:41       ` Brent Sterner
1993-06-24 19:02         ` Douglas W. O'Neal
1993-06-24 20:22         ` Marcus J Ranum [this message]
1993-06-24 21:26           ` Marc Sabatella
1993-06-24 21:42             ` John D. McCalpin
1993-06-24 21:35           ` John D. McCalpin
1993-06-24 23:52           ` Rick Jones
1993-06-30 17:33           ` Dave Sill
1993-06-30 18:12             ` J. D. McDonald
1993-06-30 18:48               ` Chris Kalisiak
1993-06-30 19:07               ` Dave Sill
1993-07-02 20:17               ` Dileep Bhandarkar
1993-07-03  6:22                 ` todd j. derr
1993-06-30 18:45             ` John R. Mashey
1993-06-30 22:08               ` furio ercolessi
1993-07-01 16:40                 ` Arvind Aggarwal 
1993-07-01  2:25               ` Matrix Multiply and KAP (Was: Re: Summary: Alpha Performance) Larry Meadows
1993-06-24 18:54       ` Summary: Alpha Performance Dave Bernard
1993-06-25  0:56         ` Marcus J Ranum
1993-06-25 12:36           ` ENOUGH (was Re: Summary: Alpha Performance) Gregory T. Byrd
1993-06-25 22:07             ` Mike Reaser
1993-06-25 23:17             ` ENOUGH Ralph Finch
1993-06-25 23:26             ` fourstones results on the DEC 3000/500 and DEC 3000/500X Gail L. Grant
1993-06-28 20:45           ` Summary: Alpha Performance Marc Sabatella
1993-06-24 17:10     ` Guy Dawson
     [not found] ` <1993Jun22.144348.26782@ryn.mro4.dec.c <SOLID.93Jun23100608@piglet.piglet.otago.ac.nz>
1993-06-24  8:08   ` Pete KAISER
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox