TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: All
from: Paul Edwards
date: 1996-01-07 23:18:00
subject: pdpclib

* Crossposted in area PUBLIC_DOMAIN, OS2PROG


The following is performance tests on PDPCLIB.  The first 2
sets of results will be reproducible by the released version.
The last one is after internal mods here...


                fgets on text files
                -------------------
                
bcc - 14.4, 13.8, 14.1
gcc - 13.6, 13.5, 13.3
icc - 8.2, 8.4, 8.2
wcc - 24.6, 24.6, 24.6
pbcc - 5.4, 5.4, 5.3
pgcc - 4.9, 4.9, 4.9
picc - 5.4, 5.3, 5.3
pwcc - 5.4, 5.4, 5.5

summary - cset has the best library, watcom the worst.  pdpclib
creams the lot.  gcc is the best compiler.
                                
                                
                large freads on binary files
                ----------------------------
                
bcc - 2.6, 2.2, 2.4
gcc - 2.9, 3.1, 3.0
icc - 4, 4.3, 4
wcc - 2.5, 2.4, 2.5
pbcc - 2, 2, 2
pgcc - 2, 2, 2
picc - 2, 2, 2
pwcc - 2, 2, 2

summary - Borland has the best library, cset has the worst.
pdpclib creams the lot.  The compilers are equal.


                small freads on binary files
                ----------------------------

bcc - 8.9, 8.2, 8.7
gcc - 3.9, 3.9, 3.9
icc - 4.5, 4.8, 4.5
wcc - 4.2, 4.1, 4.0
pbcc - 4.4, 4.5, 4.3
pgcc - 4.1, 4.0, 4.1
picc - 4.0, 3.9, 4.0
pwcc - 3.9, 3.9, 3.9

summary - Borland has the worst library, gcc has the best.
pdpclib finds the first instance where it doesn't beat the compiler
provided library, namely gcc.  I expect that this is due to function
call overhead, and I will have to inline the freadSlowB function
myself, rather than get the compiler to do it for me.


Information:
I used a 486DX33 with a RAM disk in order to perform these tests,
in an effort to concentrate the stats on the library itself rather
than the physical hard disk.
bcc = Borland C++ 1.5 
gcc = EMX 0.9a
icc = CSET++/2 2.0
wcc = Watcom 10.0b
p* = PDPCLIB compiled with one of the above compilers.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.