home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / c-runtime / tests / 18Nov91.perf < prev    next >
Encoding:
Text File  |  1991-11-19  |  2.7 KB  |  104 lines

  1. * gcc2 
  2. * librun-time.a compiled with: -fno-function-cse -O2 -DNDEBUG
  3. * tests compiled with:         -fno-function-cse -DDEBUG
  4.  
  5. for( i = 0; i < ITERATIONS; ++i )
  6.   [[ Object new ] free ];
  7. 1000000 iterations, 87 sec (11494.252874/sec)
  8.  
  9. for( i = 0; i < ITERATIONS; ++i )
  10.   [[ SubClass2 new ] free ];
  11. ( super class must be searched for +new)
  12. 1000000 iterations, 96 sec (10416.666667/sec)
  13.  
  14. for( i = 0; i < ITERATIONS; ++i )
  15.   [[ SubClass2 newOther ] free ];
  16. (+newOther calls +new in its super class)
  17. 1000000 iterations, 111 sec (9009.009009/sec)
  18.  
  19. aObj = [ Object new ];
  20. for( i = 0; i < ITERATIONS; ++i )
  21.   [ aObj self ];
  22. 1000000 iterations, 13 sec (76923.076923/sec)
  23.  
  24. aObj = [ SubClass3 new ];
  25. for( i = 0; i < ITERATIONS; ++i )
  26.   [ aObj self ];
  27. (-self is implemented two classes up)
  28. 1000000 iterations, 13 sec (76923.076923/sec)
  29.  
  30. aObj = [ SubClass3 new ];
  31. for( i = 0; i < ITERATIONS; ++i )
  32.   [[ aObj self ] self ];
  33. 1000000 iterations, 25 sec (40000/sec)\nntti> 
  34.  
  35.  
  36.  
  37. * NeXT cc
  38. *    cc -c -fno-function-cse -DDEBUG
  39.  
  40. for( i = 0; i < ITERATIONS; ++i )
  41.   [[ Object new ] free ];
  42. 1000000 iterations, 74 sec (13513.513514/sec)
  43.  
  44. for( i = 0; i < ITERATIONS; ++i )
  45.   [[ SubClass2 new ] free ];
  46. (super class must be searched for +new)
  47. 1000000 iterations, 77 sec (12987.012987/sec)
  48.  
  49. for( i = 0; i < ITERATIONS; ++i )
  50.   [[ SubClass2 newOther ] free ];
  51. (+newOther calls +new in its super class)
  52. 1000000 iterations, 82 sec (12195.121951/sec)
  53.  
  54. aObj = [ Object new ];
  55. for( i = 0; i < ITERATIONS; ++i )
  56.   [ aObj self ];
  57. 1000000 iterations, 3 sec (333333.333333/sec)
  58.  
  59. aObj = [ SubClass3 new ];
  60. for( i = 0; i < ITERATIONS; ++i )
  61.   [ aObj self ];
  62. (-self is implemented two classes up)
  63. 1000000 iterations, 3 sec (333333.333333/sec)
  64.  
  65. aObj = [ SubClass3 new ];
  66. for( i = 0; i < ITERATIONS; ++i )
  67.   [[ aObj self ] self ];
  68. 1000000 iterations, 6 sec (166666.666667/sec)
  69.  
  70.  
  71. * gcc2 
  72. * librun-time.a compiled with: -fno-function-cse -DDEBUG -UNDEBUG
  73. * tests compiled with:         -fno-function-cse -DDEBUG
  74.  
  75. for( i = 0; i < ITERATIONS; ++i )
  76.   [[ Object new ] free ];
  77. 1000000 iterations, 1509 sec (662.690524/sec)
  78.  
  79. for( i = 0; i < ITERATIONS; ++i )
  80.   [[ SubClass2 new ] free ];
  81. (super class must be searched for +new)
  82. 1000000 iterations, 5692 sec (175.685172/sec)
  83.  
  84. for( i = 0; i < ITERATIONS; ++i )
  85.   [[ SubClass2 newOther ] free ];
  86. (+newOther calls +new in its super class)
  87. 1000000 iterations, 5718 sec (174.886324/sec)
  88.  
  89. aObj = [ Object new ];
  90. for( i = 0; i < ITERATIONS; ++i )
  91.   [ aObj self ];
  92. 1000000 iterations, 17 sec (58823.529412/sec)
  93.  
  94. aObj = [ SubClass3 new ];
  95. for( i = 0; i < ITERATIONS; ++i )
  96.   [ aObj self ];
  97. (-self is implemented two classes up)
  98. 1000000 iterations, 18 sec (55555.555556/sec)
  99.  
  100. aObj = [ SubClass3 new ];
  101. for( i = 0; i < ITERATIONS; ++i )
  102.   [[ aObj self ] self ];
  103. 1000000 iterations, 35 sec (28571.428571/sec)
  104.