home *** CD-ROM | disk | FTP | other *** search
- --------------------------------------------------------------------------------
- BEST C LIBRARY SPEED TEST RESULTS
- --------------------------------------------------------------------------------
-
- --------------------------------------------------------------------------------
- BAR vs BOXFILL
-
- BAR
- draws a solid rectangle
- standard C library
- (BAR 8x8) 14992 solid rectangles per second
- (BAR 16x16) 5442 solid rectangles per second
- (BAR 64x64) 1269 solid rectangles per second
-
- BOXFILL
- draws a solid rectangle
- BEST C library
- (BOXFILL 8x8) 41259 solid rectangles per second -- 175 percent faster
- (BOXFILL 16x16) 8640 solid rectangles per second -- 59 percent faster
- (BOXFILL 64x64) 1245 solid rectangles per second -- 2 percent slower
-
- --------------------------------------------------------------------------------
- RECTANGLE vs BOXOUTLINE
-
- RECTANGLE
- draws the outline of a rectangle
- standard C library
- (RECTANGLE 8x8) 6244 rectangle outlines per second
- (RECTANGLE 16x16) 5174 rectangle outlines per second
- (RECTANGLE 64x64) 2390 rectangle outlines per second
-
- BOXOUTLINE
- draws the outline of a rectangle
- BEST C library
- (BOXOUTLINE 8x8) 33642 rectangle outlines per second -- 439 percent faster
- (BOXOUTLINE 16x16) 11645 rectangle outlines per second -- 125 percent faster
- (BOXOUTLINE 64x64) 3344 rectangle outlines per second -- 40 percent faster
-
- --------------------------------------------------------------------------------
- LINE vs LINEXY
-
- LINE
- draws a line
- standard C library
- (LINE horizontal 8) 25365 lines per second
- (LINE horizontal 16) 21590 lines per second
- (LINE horizontal 64) 10773 lines per second
- (LINE vertical 8) 23802 lines per second
- (LINE vertical 16) 18349 lines per second
- (LINE vertical 64) 8190 lines per second
- (LINE diagonal 8) 19435 lines per second
- (LINE diagonal 16) 13869 lines per second
- (LINE diagonal 64) 5108 lines per second
-
- LINEXY
- draws a line
- BEST C library
- (LINEXY horizontal 8) 64168 lines per second -- 153 percent faster
- (LINEXY horizontal 16) 47885 lines per second -- 122 percent faster
- (LINEXY horizontal 64) 36594 lines per second -- 240 percent faster
- (LINEXY vertical 8) 42996 lines per second -- 81 percent faster
- (LINEXY vertical 16) 32262 lines per second -- 76 percent faster
- (LINEXY vertical 64) 12564 lines per second -- 53 percent faster
- (LINEXY diagonal 8) 29761 lines per second -- 53 percent faster
- (LINEXY diagonal 16) 18929 lines per second -- 36 percent faster
- (LINEXY diagonal 64) 5998 lines per second -- 17 percent faster
-
- --------------------------------------------------------------------------------
- PUTPIXEL vs PIXEL
-
- PUTPIXEL
- changes the color of a pixel
- standard C library
- (PUTPIXEL) 47377 pixels written per second
- PIXEL
- changes the color of a pixel
- BEST C library
- (PIXEL) 95557 pixels written per second -- 102 percent faster
- --------------------------------------------------------------------------------
- GETPIXEL vs WHATPIXEL
-
- GETPIXEL
- reads the color of a pixel
- standard C library
- (GETPIXEL) 38258 pixels read per second
- WHATPIXEL
- reads the color of a pixel
- BEST C library
- (WHATPIXEL) 68410 pixels read per second -- 79 percent faster
- --------------------------------------------------------------------------------
- CONCLUSION -- BEST C library is clearly faster than the standard C library
- RECOMMENDATION -- get it!
- --------------------------------------------------------------------------------
-