home *** CD-ROM | disk | FTP | other *** search
-
- Oops! The benchmarks for "The State of C" (William J. Hunt, January
- 1986 p.82) are listed incorrectly in the magazine. Hunt's programs
- are best divided into three groups;
-
- 1) Compilation speed benchmarks. Only the number of lines in the
- file is really signifigant here.
-
- Listing 1: SIEVE.C, a 60-line file
- Listing 2: PENTATH.C, a 150-line file
- Listing 3: BIGFILE.C, a 500-line file
-
- BIGFILE.C uses three Header files;
-
- Listing 4: BIGFILE1.H
- Listing 5: BIGFILE2.H
- Listing 6: BIGFILE3.H
-
- 2) Link time benchmarks. For single-object-file link, SIEVE.C
- (listing 1) was used. The following files were used for the six-
- file link benchmarks;
-
- Listing 7: BENCH0.C
- Listing 8: BENCH1.C
- Listing 9: BENCH2.C
- Listing 10: BENCH3.C
- Listing 11: BENCH4.C
- Listing 12: BENCH5.C
-
- 3) Execution benchmarks. An eight-part program determined the
- execution speed of various language features.
-
- Listing 13: AUTO1.C, the control routine which executed other
- routines
- Listing 14: AUTO2.C, a modified pentathlon benchmark (similar to
- Listing 1 in "C and the PC," PC Tech Journal,
- November/December 1983, p.110)
- Listing 15: AUTO3.C, more standard pentathlon benchmarks.
- Listing 16: AUTO4.C, integer math
- Listing 17: AUTO5.C, long integer math
- Listing 18: AUTO6.C, floating point math
- Listing 19: AUTO7.C, Fibonacci function call benchmark
- Listing 20: ELTIME.C, routine to read the clock for AUTO1.C
-
-