home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!spool.mu.edu!sgiblab!munnari.oz.au!metro!usage!usage!geoffo
- From: geoffo@spectrum.cs.unsw.oz.au (Geoff Oakley)
- Subject: Re: Unusual SAS6.0 results
- In-Reply-To: koren@fc.hp.com's message of Sun, 15 Nov 1992 19:48:07 GMT
- Message-ID: <GEOFFO.92Nov18125942@crimson.spectrum.cs.unsw.oz.au>
- Sender: news@usage.csd.unsw.OZ.AU
- Nntp-Posting-Host: crimson.spectrum.cs.unsw.oz.au
- Organization: none
- References: <BxrwC8.3AG@fc.hp.com>
- Date: Wed, 18 Nov 1992 02:59:42 GMT
- Lines: 46
-
- In article <BxrwC8.3AG@fc.hp.com> koren@fc.hp.com (Steve Koren) writes:
-
- [ a particular module ] runs as before, but it is *much* slower. I'm talking
- about 20X here. It is getting no enforcer hits; I've checked that. Since
- I really wanted to get it back to its old execution speed, I did a
- lprof and lstat on it. I'm getting _really_ wierd results.
-
- I am getting something similar, which I will tell EMITS when my
- registration comes through. I isolated my problem down to the
- following:
-
- #include <stdio.h>
- #include <stdlib.h>
-
- void main ()
- {
- int i,j;
-
- putchar('?');
- for (i=0 ; i<80 ; i++)
- for (j=0 ; j<80 ; j++)
- free(malloc(j));
- }
-
- Compiled with
-
- sc link test.c
-
- the program runs in 2 seconds.
-
-
- The interesting thing is when I remove the `putchar' line. When I
- recompile, the program runs in 108 seconds. SAS/C v5.10a takes 2
- seconds for both versions.
-
- Am I doing something totally whacky?
-
-
- geoff o
-
-
- --
-
- geoffo@cse.unsw.edu.au
- Geoff Oakley: CS & E, UNSW, PO Box 1, Kensington, NSW 2033, Australia
- Phone: +61 2 697 4043 Fax: +61 2 313 7987
-