home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!mmdf
- From: "G.W.Bultman" <bultman@dgw.rws.nl>
- Subject: Real versus system time for Perl scripts
- Message-ID: <1992Nov17.140007.20389@uvaarpa.Virginia.EDU>
- Sender: mmdf@uvaarpa.Virginia.EDU (Mail System)
- Reply-To: bultman@dgw.rws.nl
- Organization: The Internet
- Date: Tue, 17 Nov 1992 14:00:07 GMT
- Lines: 19
-
- Hi,
-
- My question is the following. I have a Perl script that calculates
- the exponential function exp( 8*ln(10)*(x+1/2)^2+y^2) for several
- hundreds/thousands of points in a rectangular grid and outputs the value
- with some extra info around it.
-
- When I ran the script, I found it to be very slow. I wrote the same in
- a small C program, but found to my amazement that the execution time
- had only doubled, while the time spent in the system went up by a factor
- 10. Can anyone give me any pointers as to why this happens.
- My system is a HP9000-870 running HP-UX.
-
- o o
- / | \ Gert Bultman <bultman@dgw.rws.nl> Koningskade 4 / | \
- o--o--o Tidal Waters Division 2596 AA The Hague o--o--o
- \ | / Rijkswaterstaat The Netherlands \ | /
- o o
-
-