home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / perl / 7015 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.3 KB  |  31 lines

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