home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / apl / 1292 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.7 KB  |  56 lines

  1. Newsgroups: comp.lang.apl
  2. Path: sparky!uunet!psinntp!juliet!news
  3. From: jja@fnbc.com (Joseph Alotta)
  4. Subject: performance update, apologies offered
  5. Message-ID: <1993Jan8.151656.15252@fnbc.com>
  6. Keywords: performance, j
  7. Sender: news@fnbc.com
  8. Organization: First National Bank Of Chicago, Chicago IL, USA
  9. References: <1993Jan7.211247.3714@nic.csu.net>
  10. Date: Fri, 8 Jan 93 15:16:56 GMT
  11. Lines: 43
  12.  
  13.  
  14. i retested j vs. z language and found the results to be much
  15. more encouraging.
  16.  
  17. the following tests were made on the same machine with the j6,
  18. (i had tested j5 earlier).
  19.  
  20. j is still some 37% slower, but i think the difference can be 
  21. partially accounted for by the fact that j allows complex numbers
  22. and z does not, and j allows n-dimensional arrays where z allows
  23. up to 3 dimensions.
  24.  
  25. amy{jja}15: cat ztest
  26. a=iota(1e6);
  27. +/a;
  28. amy{jja}16: cat jtest
  29. a=. i. 1e6
  30. +/a
  31. amy{jja}17: time zlang ztest
  32. 5.000005e+11
  33. 3.5u 0.8s 0:04 95% 0+0k 2+0io 0pf+0w
  34. amy{jja}18: time j < jtest
  35. 4.999995e11
  36. 2.2u 1.1s 0:03 96% 0+0k 0+0io 0pf+0w
  37. J6   Copyright (c) 1990-1992, Iverson Software Inc.  All Rights Reserved.
  38.  
  39.    1.1 % 0.8
  40. 1.375
  41.  
  42. sorry for causing grief.  j is a super language and i want to 
  43. thank those who have made it possible.
  44.  
  45.  
  46. joe.
  47.  
  48.  
  49. ==============================================================
  50. ! joe alotta                                    jja@fnbc.com !                                               
  51. !                                             (312) 732-3439 !
  52. !                                                            !
  53. ! "The main thing is to keep the main thing the main thing." !
  54. ! Dr. George Sweeney                                         !
  55. ==============================================================
  56.