home *** CD-ROM | disk | FTP | other *** search
- ,print 106
- type 86 86 86 86
- ,end
-
-
- USERS MANUAL
- version 1.0
-
-
- for
-
-
- BENCHMARKING COMPILERS
-
-
-
-
-
- by
- Doris Sayon and Bonnie Burkhardt
-
-
-
-
-
-
-
-
-
- May 9, 1985
-
-
-
-
-
-
-
-
-
- Western Division
- GTE Government Systems Group
- 100 Ferguson Drive
- Mountain View, CA 94039
-
-
-
-
- CONTENT
-
- 1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . 3
- 2 WHETSTONE BENCHMARK . . . . . . . . . . . . . . . . 3
- 2.1 Description: . . . . . . . . . . . . . . . . . . . 3
- 2.2 Usage Instructions: . . . . . . . . . . . . . . . 3
- 3 DHRYSTONE BENCHMARK . . . . . . . . . . . . . . . . 5
- 3.1 Description: . . . . . . . . . . . . . . . . . . . 5
- 3.2 Usage Instructions: . . . . . . . . . . . . . . . 5
- Page 3
-
-
- 1 INTRODUCTION
-
- The suite of tests were gathered and developed at GTE Government
- Systems to provide a benchmarking capability to determine which ADA
- compiler would be suitable to be used for our needs. As a measurement
- of the efficiency of the compiler, the Whetstone test was written in
- FORTRAN, 'C', and Pascal as well as ADA to give a relative measurement
- across languages as well as compilers.
-
-
-
- 2 WHETSTONE BENCHMARK
-
- 2.1 Description:
-
- The first program in the suite is the Whetstone benchmark, which
- measures processor speed. Included in the Whetstone data generated
- from the test is some information gathered from package SYSTEM which
- tells of the environment in which the test is taking place.
-
- In order to compare the processor speed with/without a math
- library and with/without a full set of checks, four variations of the
- Whetstone program were created. These versions were called A, B, C,
- and D. The files are also labelled according to the version,
- Whetadaa, Whetadab, Whetadac, and Whetadad. The versions are defined
- as follows:
-
- A stubbed math library, no checks
- B stubbed math library, full checks
- C full math library, no checks
- D full math library, full checks
-
-
-
-
- 2.2 Usage Instructions:
-
- In order to use the Whetstone benchmark, you must first create a
- file called ENVIRON.INF in the directory in which the Whetstone
- program will be running. The information in ENVIRON.INF will be of
- the following format:
-
- Machine: xyz
- Op. Sys: 4.xxx
- Physical Mem: yy
-
- Compiler Tested: compiler 1.o of xyz company
-
- This information will be copied into the data file which will be
- created from running the whetstone test. This will help keep track of
- what compiler and machine the test was run on.
-
- If the ENVIRON.INF file does not exist, there will be a message
-
- "Something wrong with the existence of the ENVIRON.INF file"
- Page 4
-
-
-
- written into the file and the tests results will still be recorded.
-
- Compile the files in the following order:
-
- 1. MATHSTUB.ADA should be compiled first because it is a package
- which needs to be resolved in the WHETADA.ADA file
-
- 2. HELPTOOLS.ADA should be compiled next.
-
- 3. WHETADA.ADA (all versions) should be compiled last.
-
-
- After successful compilation of the above packages, the program
- should be ready to run. When the program is run, the results will
- appear both on the terminal and in a data file. The name of the data
- file has following format:
-
- Wnnddhhmm.DAT when
-
- nn: two character sequence which represents the month
- (i.e. ja,fe,mr,ap,my,jn,jl,ag,se,oc,nv,dc)
-
- dd: two number sequence for day (01 thru 31)
-
- hh: two number sequence for hour (00 thru 23)
-
- mm: two number sequence for minutes (00 thru 59)
-
- Example: a test run at 2:47 pm on Jan 8 will have the
- file name WJA081447.DAT
-
- The encoding of the date into the name of the file will help
- distinguish between several runs of the same test.
-
- If compile time and link time is desired, you can compile and
- link the Whetstone programs by executing the command file WHETADA.COM.
- This command file displays the current time before and after each
- compile and link to SYS$OUTPUT (defaulted to the terminal screen.) The
- user can then determine the compile and link time by computing the
- time difference between the start and stop of each compile and link.
-
- The Whetstone test can also be used to compare execution speed
- and size of the executable image when using various compile options,
- such as OPTIMIZE=TIME, OPTIMIZE=SPACE, NOOPTIMIZE. This can be
- accomplished by compiling the Whetstone program with the desired
- compile option, linking, and executing the program as described
- previously. The command file WHETADA.COM also compiles, links, and
- executes all four version of the Whetstone with 3 different compile
- options, OPTIMIZE=TIME, OPTIMIZE=SPACE, NOOPTIMIZE.
-
- Size of the executable code can be found by executing the
- command:
-
- $DIR/SIZE *.EXE
- Page 5
-
-
-
- The size of the executable version will be written to SYS$OUTPUT
- (defaulted to the terminal screen.) The user can then determine the
- size of the executable code.
-
- This process is then repeated for the Whetstone test written in
- the other languages. Since there is no way in 'C' to designate which
- checks are to be included in the executable code, the 'C' Whetstone
- only has 2 versions, A and B. Version A has a stubbed math library
- and Version B has a full math library.
-
-
-
- 3 DHRYSTONE BENCHMARK
-
- 3.1 Description:
-
- The next program in the suite is the Dhrystone benchmark. The
- Dhrystone benchmark measures statement execution per unit time.
- Included in the Dhrystone data which is generated from the test, there
- is also some information gathered from package SYSTEM which tells of
- the environment in which the test is taking place.
-
-
-
- 3.2 Usage Instructions:
-
- In order to use the Dhrystone benchmark, you must first make sure
- the HELPTOOLS package has been compiled and is in the library to be
- referenced for resolution of packages. Next, DHRYADA should be
- compiled after helptools has compiled.
-
- If the compilation was successful, execute the Dhrystone
- benchmark. The data should appear both on your terminal and in a data
- file.
-
- The name of the data file is encoded the same was as the data
- file for the Whetstone data except that the filename starts with a "D"
- instead of "W".
-
- The existence of ENVIRON.INF should exist for the same reasons as
- expressed in the information above for the Whetstone benchmark.
-