home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / PASCAL / BPL70N14 / TURBPERF.DOC < prev   
Text File  |  1993-05-20  |  22KB  |  468 lines

  1. ++++++++++++++ TURBO.TPL Performance Comparison ++++++++++++++++++++
  2.  
  3.                    BP 7.0 Turbo Pascal Library
  4.                               versus
  5.                 BP 7.0 Runtime Library Update 1.2
  6.  
  7.  
  8.       Performance data for Cyrix 486DLC, Intel RapidCAD, Intel 386DX,
  9.       and Intel 8086
  10.  
  11. Note: The time resolution in the ARITEST test program is about 0.3
  12.       usec, so the relative timing error can get quite large for
  13.       small times like those measured on a 386DX, 486DLC, or Intel
  14.       RapidCAD. For these processors, the times given in the table
  15.       represent the average of three measurements.
  16.  
  17.  
  18. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  19. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  20.  
  21.  
  22. Machine configuration: Cyrix 486DLC 40 MHz Computer w/ 128 kB CPU-cache
  23.                        8.0 MB of RAM
  24.                        Cyrix 387+ coprocessor
  25.                        DOS 5.0 Operating System
  26.  
  27.  
  28. Test Program: ARITEST.PAS
  29.  
  30.                                                          PERFORMANCE
  31. OPERATION (in usec)        BP 7.0 TPL    BP 7.0 RLU         INCREASE
  32. --------------------------------------------------------------------
  33. LONG-Mul                          1.9           1.6           18.75%
  34. LONG-Div                          2.9           3.4          -14.71%
  35. LONG-Abs                          0.3           0.3            0.00%
  36. REAL-Float                        3.0           2.5           20.00%
  37. REAL-Add                          6.1           6.6           -7.58%
  38. REAL-Sub                          6.7           6.9           -2.90%
  39. REAL-Mul                          6.3           6.2           -1.59%
  40. REAL-Mul (Short)                  3.7           3.8           -2.63%
  41. REAL-Div                         41.6          10.7          288.79%
  42. REAL-Sqr                          5.8           4.4           31.82%
  43. REAL-Sqr (Short)                  2.1           1.8           16.67%
  44. REAL-Int                          2.8           2.8            0.00%
  45. REAL-Frac                         7.9           2.1          276.19%
  46. REAL-Trunc                        3.1           3.4           -8.82%
  47. REAL-Round                        3.1           3.4           -8.82%
  48. REAL-Sqrt                       248.4           8.4         2857.14%
  49. REAL-Ln                         142.4          86.2           65.20%
  50. REAL-Exp                        160.6          72.8          120.60%
  51. REAL-Sin                        114.6          78.8           45.43%
  52. REAL-Cos                        117.7          77.2           52.46%
  53. REAL-ArcTan                     106.1          59.3           78.92%
  54. --------------------------------------------------------------------
  55.  
  56.  
  57. Test Program: DHRYSTON.PAS
  58.  
  59.                                                          PERFORMANCE
  60. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  61. --------------------------------------------------------------------
  62. Dhrystones / Sec:             13850.7       14545.7            5.02%
  63. --------------------------------------------------------------------
  64.  
  65.  
  66. Test Program: WHETSTON.PAS
  67.  
  68.                                                          PERFORMANCE
  69. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  70. --------------------------------------------------------------------
  71. REAL KWhetstones:             564.972      1049.318           85.73%
  72. --------------------------------------------------------------------
  73.  
  74.  
  75. Test Program: STRTEST.PAS
  76.  
  77.                                                          PERFORMANCE
  78. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  79. --------------------------------------------------------------------
  80. String-Benchmark (msec)           478           270           77.04%
  81. --------------------------------------------------------------------
  82.  
  83.  
  84. Test Program: WHETST87.PAS
  85.  
  86.                                                          PERFORMANCE
  87. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  88. --------------------------------------------------------------------
  89. DOUBLE PRECISION KWhetstones:2673.797      3367.003           25.93%
  90. --------------------------------------------------------------------
  91.  
  92.  
  93. Test Program: LLL.PAS
  94.  
  95.                                                          PERFORMANCE
  96. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  97. --------------------------------------------------------------------
  98. DOUBLE PRECISION MFLOPS:       0.3923        0.4351           10.91%
  99. --------------------------------------------------------------------
  100.  
  101.  
  102. Test Program: SETTEST.PAS
  103.  
  104.                                                          PERFORMANCE
  105. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  106. --------------------------------------------------------------------
  107. Set benchmark (sec):           26.843        21.272           26.19%
  108. --------------------------------------------------------------------
  109.  
  110.  
  111. Test Program: LONGBN2.PAS
  112.  
  113.                                                          PERFORMANCE
  114. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  115. --------------------------------------------------------------------
  116. Longint benchmark (msec):         122 (*)       119            2.52%
  117. --------------------------------------------------------------------
  118.  
  119. (*) original library returns wrong results due to bug in SHL, SHR routines
  120.  
  121.  
  122. Test Program: HEAPTEST.PAS
  123.  
  124.                                                          PERFORMANCE
  125. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  126. --------------------------------------------------------------------
  127. Heap benchmark (msec):            213           206            3.40%
  128. --------------------------------------------------------------------
  129.  
  130.  
  131.  
  132. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  133. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  134.  
  135.  
  136. Machine configuration: Intel RapidCAD 40 MHz Computer w/ 128 kB CPU-cache
  137.                        8.0 MB of RAM
  138.                        on-chip coprocessor in RapidCAD
  139.                        DOS 5.0 Operating System
  140.  
  141.  
  142. Test Program: ARITEST.PAS
  143.  
  144.                                                          PERFORMANCE
  145. OPERATION (in usec)        BP 7.0 TPL    BP 7.0 RLU         INCREASE
  146. --------------------------------------------------------------------
  147. LONG-Mul                          2.7           3.1          -12.90%
  148. LONG-Div                          3.5           4.6          -18.60%
  149. LONG-Abs                          0.3           0.3            0.00%
  150. REAL-Float                        3.8           3.3           15.15%
  151. REAL-Add                          6.2           6.7           -7.46%
  152. REAL-Sub                          7.0           7.3           -4.11%
  153. REAL-Mul                         11.7          11.8           -0.85%
  154. REAL-Mul (Short)                  5.4           5.5           -1.82%
  155. REAL-Div                         36.3          15.0          142.00%
  156. REAL-Sqr                         11.6           8.3           39.76%
  157. REAL-Sqr (Short)                  3.0           2.5           20.00%
  158. REAL-Int                          2.7           2.6            3.85%
  159. REAL-Frac                         7.8           2.7          188.89%
  160. REAL-Trunc                        3.4           3.5           -2.86%
  161. REAL-Round                        3.4           3.5           -2.86%
  162. REAL-Sqrt                       220.3          12.0         1735.83%
  163. REAL-Ln                         188.2         113.8           65.38%
  164. REAL-Exp                        193.3          97.3           98.66%
  165. REAL-Sin                        164.6         105.8           55.57%
  166. REAL-Cos                        166.9         102.9           62.20%
  167. REAL-ArcTan                     143.7          78.5           83.31%
  168. --------------------------------------------------------------------
  169.  
  170.  
  171. Test Program: DHRYSTON.PAS
  172.  
  173.                                                          PERFORMANCE
  174. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  175. --------------------------------------------------------------------
  176. Dhrystones / Sec:             10937.2       11315.0            3.45%
  177. --------------------------------------------------------------------
  178.  
  179.  
  180. Test Program: WHETSTON.PAS
  181.  
  182.                                                          PERFORMANCE
  183. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  184. --------------------------------------------------------------------
  185. REAL KWhetstones:             471.254       749.625           59.07%
  186. --------------------------------------------------------------------
  187.  
  188.  
  189. Test Program: STRTEST.PAS
  190.  
  191.                                                          PERFORMANCE
  192. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  193. --------------------------------------------------------------------
  194. String-Benchmark (msec)           630           367           71.66%
  195. --------------------------------------------------------------------
  196.  
  197.  
  198. Test Program: WHETST87.PAS
  199.  
  200.                                                          PERFORMANCE
  201. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  202. --------------------------------------------------------------------
  203. DOUBLE PRECISION KWhetstones:3937.008      4444.444           12.89%
  204. --------------------------------------------------------------------
  205.  
  206.  
  207. Test Program: LLL.PAS
  208.  
  209.                                                          PERFORMANCE
  210. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  211. --------------------------------------------------------------------
  212. DOUBLE PRECISION MFLOPS:       0.6866        0.6677           -2.83%
  213. --------------------------------------------------------------------
  214.  
  215.  
  216. Test Program: SETTEST.PAS
  217.  
  218.                                                          PERFORMANCE
  219. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  220. --------------------------------------------------------------------
  221. Set benchmark (sec):           39.815        31.382           26.87%
  222. --------------------------------------------------------------------
  223.  
  224.  
  225. Test Program: LONGBN2.PAS
  226.  
  227.                                                          PERFORMANCE
  228. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  229. --------------------------------------------------------------------
  230. Longint benchmark (msec):         222 (*)       245          -10.36%
  231. --------------------------------------------------------------------
  232.  
  233. (*) original library gets wrong results due to bug in SHL, SHR routines
  234.  
  235.  
  236. Test Program: HEAPTEST.PAS
  237.  
  238.                                                          PERFORMANCE
  239. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  240. --------------------------------------------------------------------
  241. Heap benchmark (msec):            261           236           10.59%
  242. --------------------------------------------------------------------
  243.  
  244.  
  245.  
  246. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  247. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  248.  
  249.  
  250. Machine configuration: Intel 80386 40 MHz Computer w/ 128 kB CPU-cache
  251.                        8.0 MB of RAM
  252.                        Cyrix 387+ coprocessor
  253.                        DOS 5.0 Operating System
  254.  
  255.  
  256. Test Program: ARITEST.PAS
  257.  
  258.                                                          PERFORMANCE
  259. OPERATION (in usec)        BP 7.0 TPL    BP 7.0 RLU         INCREASE
  260. --------------------------------------------------------------------
  261. LONG-Mul                          3.1           3.4           -8.82%
  262. LONG-Div                          3.9           5.6          -30.36%
  263. LONG-Abs                          0.5           0.5            0.00%
  264. REAL-Float                        5.2           4.8            8.33%
  265. REAL-Add                          9.2           9.4           -2.13%
  266. REAL-Sub                          9.8          10.0           -2.00%
  267. REAL-Mul                         14.5          14.0            3.57%
  268. REAL-Mul (Short)                  6.7           6.9           -2.90%
  269. REAL-Div                         51.6          18.5          178.92%
  270. REAL-Sqr                         13.9          10.0           39.00%
  271. REAL-Sqr (Short)                  3.9           3.1           25.81%
  272. REAL-Int                          3.5           3.3            6.06%
  273. REAL-Frac                        10.6           3.6          194.44%
  274. REAL-Trunc                        4.8           5.1           -5.88%
  275. REAL-Round                        4.8           5.1           -5.88%
  276. REAL-Sqrt                       313.0          14.4         2073.61%
  277. REAL-Ln                         244.9         145.8           67.97%
  278. REAL-Exp                        255.6         125.8          103.18%
  279. REAL-Sin                        211.8         134.5           57.47%
  280. REAL-Cos                        214.2         131.4           63.01%
  281. REAL-ArcTan                     187.7         100.7           86.40%
  282. --------------------------------------------------------------------
  283.  
  284.  
  285. Test Program: DHRYSTON.PAS
  286.  
  287.                                                          PERFORMANCE
  288. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  289. --------------------------------------------------------------------
  290. Dhrystones / Sec:             10871.9       10911.7            0.37%
  291. --------------------------------------------------------------------
  292.  
  293.  
  294. Test Program: WHETSTON.PAS
  295.  
  296.                                                          PERFORMANCE
  297. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  298. --------------------------------------------------------------------
  299. REAL KWhetstones:             362.056       594.530           64.21%
  300. --------------------------------------------------------------------
  301.  
  302.  
  303. Test Program: STRTEST.PAS
  304.  
  305.                                                          PERFORMANCE
  306. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  307. --------------------------------------------------------------------
  308. String-Benchmark (msec)           622           385           61.56%
  309. --------------------------------------------------------------------
  310.  
  311.  
  312. Test Program: WHETST87.PAS
  313.  
  314.                                                          PERFORMANCE
  315. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  316. --------------------------------------------------------------------
  317. DOUBLE PRECISION KWhetstones:2145.923      2732.796           27.35%
  318. --------------------------------------------------------------------
  319.  
  320.  
  321. Test Program: LLL.PAS
  322.  
  323.                                                          PERFORMANCE
  324. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  325. --------------------------------------------------------------------
  326. DOUBLE PRECISION MFLOPS:       0.2937        0.3230            9.98%
  327. --------------------------------------------------------------------
  328.  
  329.  
  330. Test Program: SETTEST.PAS
  331.  
  332.                                                          PERFORMANCE
  333. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  334. --------------------------------------------------------------------
  335. Set benchmark (sec):           44.647        34.847           28.12%
  336. --------------------------------------------------------------------
  337.  
  338.  
  339. Test Program: LONGBN2.PAS
  340.  
  341.                                                          PERFORMANCE
  342. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  343. --------------------------------------------------------------------
  344. Longint benchmark (msec):         251 (*)       275           -8.73%
  345. --------------------------------------------------------------------
  346.  
  347. (*) original libarary returns incorrect results due to bug in SHL, SHR
  348.  
  349.  
  350. Test Program: HEAPTEST.PAS
  351.  
  352.                                                          PERFORMANCE
  353. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  354. --------------------------------------------------------------------
  355. Heap benchmark (msec):            294           283            3.89%
  356. --------------------------------------------------------------------
  357.  
  358.  
  359. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  360. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  361.  
  362.  
  363. Machine configuration: 8086 9.54 MHz Computer
  364.                        640 kB RAM
  365.                        Intel 8087 coprocessor
  366.                        PC-DOS 3.3 Operating System
  367.  
  368.  
  369. Test Program: ARITEST.PAS
  370.  
  371.                                                          PERFORMANCE
  372. OPERATION (in usec)        BP 7.0 TPL    BP 7.0 RLU         INCREASE
  373. --------------------------------------------------------------------
  374. LONG-Mul                         65.2          46.9           39.02%
  375. LONG-Div                         73.8          56.9           29.70%
  376. LONG-Abs                          4.8           4.8            0.00%
  377. REAL-Float                       41.7          35.5           11.75%
  378. REAL-Add                         71.4          72.8           -1.92%
  379. REAL-Sub                         76.9          78.6           -2.16%
  380. REAL-Mul                        204.1         184.5           10.62%
  381. REAL-Mul (Short)                 54.8          55.9           -1.97%
  382. REAL-Div                        382.1         235.2           62.46%
  383. REAL-Sqr                        198.3         124.5           59.28%
  384. REAL-Sqr (Short)                 34.8          25.5           36.47%
  385. REAL-Int                         25.9          23.8            8.82%
  386. REAL-Frac                        80.7          27.9          189.25%
  387. REAL-Trunc                       36.6          37.6           -2.66%
  388. REAL-Round                       36.6          37.6           -2.66%
  389. REAL-Sqrt                      2364.5         197.6         1096.61%
  390. REAL-Ln                        2771.4        1607.6           72.39%
  391. REAL-Exp                       2780.3        1367.9          103.25%
  392. REAL-Sin                       2549.0        1477.2           72.56%
  393. REAL-Cos                       2563.4        1432.4           78.96%
  394. REAL-ArcTan                    2151.4        1109.3           93.94%
  395. --------------------------------------------------------------------
  396.  
  397.  
  398. Test Program: DHRYSTON.PAS
  399.  
  400.                                                          PERFORMANCE
  401. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  402. --------------------------------------------------------------------
  403. Dhrystones / Sec:               844.2         905.2            7.23%
  404. --------------------------------------------------------------------
  405.  
  406.  
  407. Test Program: WHETSTON.PAS
  408.  
  409.                                                          PERFORMANCE
  410. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  411. --------------------------------------------------------------------
  412. REAL KWhetstones:              35.487        54.186           52.69%
  413. --------------------------------------------------------------------
  414.  
  415.  
  416. Test Program: STRTEST.PAS
  417.  
  418.                                                          PERFORMANCE
  419. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  420. --------------------------------------------------------------------
  421. String-Benchmark (msec)          7136          3647           95.67%
  422. --------------------------------------------------------------------
  423.  
  424.  
  425. Test Program: WHETST87.PAS
  426.  
  427.                                                          PERFORMANCE
  428. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  429. --------------------------------------------------------------------
  430. DOUBLE PRECISION KWhetstones: 241.955       241.488           -0.19%
  431. --------------------------------------------------------------------
  432.  
  433.  
  434. Test Program: LLL.PAS
  435.  
  436.                                                          PERFORMANCE
  437. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  438. --------------------------------------------------------------------
  439. DOUBLE PRECISION MFLOPS:       0.0329        0.0330            0.30%
  440. --------------------------------------------------------------------
  441.  
  442.  
  443. Test Program: SETTEST.PAS
  444.  
  445.                                                          PERFORMANCE
  446. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  447. --------------------------------------------------------------------
  448. Set benchmark (sec):          437.204       344.921           26.75%
  449. --------------------------------------------------------------------
  450.  
  451.  
  452. Test Program: LONGBN2.PAS
  453.  
  454.                                                          PERFORMANCE
  455. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  456. --------------------------------------------------------------------
  457. Longint benchmark (msec):        4410          3733           18.14%
  458. --------------------------------------------------------------------
  459.  
  460.  
  461. Test Program: HEAPTEST.PAS
  462.  
  463.                                                          PERFORMANCE
  464. OPERATION                  BP 7.0 TPL    BP 7.0 RLU         INCREASE
  465. --------------------------------------------------------------------
  466. Heap benchmark (msec):           2709          2609            3.83%
  467. --------------------------------------------------------------------
  468.