Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: harley@pauillac.inria.fr (Robert Harley)
Subject: Re: gcc vs Dec Unix c
Date: 1998/01/13	[thread overview]
Message-ID: <69foaf$m2i@news-rocq.inria.fr> (raw)


cekim@ix.netcom.com writes:
>PPRO 200 w/cos =10 minutes -120 billion cycles
>ALpha 533 w/cos =65 minutes -2.08 trillion cycles

I think everyone is missing the point here.
You called cos() with some very large arguments.

With small arguments the Alpha's software is twice as fast as the
PPro's hardware.

With large arguments, the Alpha slows down to a sixth the speed of the
PPro.  The reason is simple: the PPro gives wrong answers.  Intel
didn't bother to reduce mod pi properly.

Example:

cos(1.0) a million times:
        answer                  time    error
Alpha    0.54030230586813976501 0.344   4.76 E-17
PPro     0.54030230586813976501 0.620   4.76 E-17

cos(123456789.0) a million times:
        answer                  time    error
Alpha   -0.16283121219902166321 3.925   -1.00 E-17
PPro    -0.16283121220058985323 0.700   -1.57 E-12


Note that the error on the PPro is 100000 times too big for double
precision.

Bye,
  Rob.
PS: Note that there is lots of room to optimise the software cos() e.g.,
    I doubled the speed in one application.  The PPro's hardware
    obviously cannot be optimised by the user.



             reply	other threads:[~1998-01-13  5:00 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-13  5:00 Robert Harley [this message]
1998-01-14  5:00 ` gcc vs Dec Unix c cekim
  -- strict thread matches above, loose matches on Subject: below --
1998-01-08  5:00 fonte
1998-01-09  5:00 ` Toon Moene
1998-01-09  5:00 ` Toon Moene
1998-01-09  5:00 ` Jaap Schellekens
1998-01-09  5:00   ` cekim
1998-01-09  5:00     ` Peter Mardahl
1998-01-09  5:00       ` Craig Burley
1998-01-10  5:00       ` cekim
1998-01-10  5:00         ` Craig Burley
1998-01-13  5:00           ` cekim
1998-01-13  5:00             ` Craig Burley
1998-01-13  5:00               ` James Van Buskirk
1998-01-14  5:00                 ` brianh
1998-01-14  5:00                   ` James Van Buskirk
1998-01-13  5:00             ` Yan-Song Chen
1998-01-13  5:00               ` Greg Lindahl
1998-01-15  5:00               ` Lupo LeBoucher
1998-01-15  5:00                 ` Greg Lindahl
1998-01-13  5:00             ` Rob Komar
1998-01-14  5:00             ` bmeyer
1998-01-15  5:00               ` cekim
1998-01-14  5:00     ` Donald K.Sinclair
1998-01-14  5:00       ` Rob Komar
1998-01-16  5:00         ` Torbjorn Lindgren
1998-01-17  5:00           ` Rob Komar
1998-01-14  5:00       ` cekim
1998-01-09  5:00 ` Toon Moene
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