Jump to content

Whetstone (benchmark)

From Wikipedia, the free encyclopedia

The Whetstone benchmark is a synthetic benchmark for evaluating the performance of computers.[1] It was first written in ALGOL 60 in 1972 at the Technical Support Unit of the Department of Trade and Industry (later part of the Central Computer and Telecommunications Agency) in the United Kingdom. It was derived from statistics on program behaviour gathered on the KDF9 computer at NPL National Physical Laboratory, using a modified version of its Whetstone ALGOL 60 compiler.[2] The workload on the machine was represented as a set of frequencies of execution of the 124 instructions of the Whetstone Code. The Whetstone Compiler was built at the Atomic Power Division of the English Electric Company in Whetstone, Leicestershire, England,[3] hence its name. Dr. B.A. Wichman at NPL produced a set of 42 simple ALGOL 60 statements, which in a suitable combination matched the execution statistics.

To make a more practical benchmark Harold Curnow of TSU wrote a program incorporating the 42 statements. This program worked in its ALGOL 60 version, but when translated into FORTRAN it was not executed correctly by the IBM optimizing compiler. Calculations whose results were not output were omitted. He then produced a set of program fragments which were more like real code and which collectively matched the original 124 Whetstone instructions. Timing this program gave a measure of the machine's speed in thousands of Whetstone instructions per second (kWIPS). The Fortran version became the first general purpose benchmark that set industry standards of computer system performance. Further development was carried out by Roy Longbottom, also of TSU/CCTA, who became the official design authority.

The Algol 60 program ran under the Whetstone compiler in July 2010, for the first time since the last KDF9 was shut down in 1980, but now executed by a KDF9 emulator.[4]

Benchmark content and enhancements

[edit]

The benchmark employs 8 test procedures, with three executing standard floating point calculations, two with such as COS or EXP functions, one each for integer arithmetic, branching or memory assignments. Output from the original comprised parameters used for each test, numeric results produced and the overall KWIPS performance rating. In 1978, the program was updated to log running time of each of the tests, allowing MFLOPS (Millions of Floating Point Operations Per Second) to be included in reports, along with an estimation of Integer MIPS (Millions of Instructions Per Second). In 1987, MFLOPS calculations were included in the log for the three appropriate tests and MOPS (Millions of Operations Per Second) for the others. Code changes were also carried out, including by Bangor University, necessary to identify unexpected behaviour, without changing the implementation of the original 124 Whetstone instructions. One necessary change was to maintain measurement accuracy at increasing CPU speeds, with self calibration to run for a noticeable finite time, typically set for 10 seconds or 100 for early PCs with low timer resolution.

Note that there are other versions of the Whetstone Benchmark available online, some claiming copyright, without reference to CCTA or the design authority.

Initial CCTA results

[edit]

In conjunction with the undertaking controlled by the Contracts Division, CCTA engineers had responsibility to design and supervise acceptance trials [5] of all UK Government computers and those for centrally funded for Universities and Research Councils, with systems varying from minicomputers to supercomputers. This provided the opportunity to gather verified Whetstone Benchmark results. Other results were obtained via new computer system appraisal activities.

CCTA records are now available in The UK National Archives,[6] including technical reports. Original Whetstone Benchmark results are in the 1985 CCTA Technical Memorandum 1182, where overall speed is only shown as MWIPS. This contains more than 1000 results for 244 computers from 32 manufacturers, including the first for PCs and Supercomputers. The report might well be accessible from the Archive. The details were later included in a publicly available report (see Available Reports below).

Vector processing version

[edit]

Roy Longbottom converted the original Whetstone Benchmark to fully exploit capabilities of the new vector processors. Results were included in the paper “Performance of Multi-User Supercomputing Facilities” presented in the 1989 Fourth International Conference on Supercomputing, Santa Clara [7] .[8]

This was also repeated in the Harold Curnow paper “Whither Whetstone? The synthetic benchmark after 15 years” presented at the “Evaluating supercomputers: strategies for exploiting, evaluating and benchmarking computers with advanced architecture” conference in 1990, in book .[9]

Whetstone benchmark influences

[edit]

Harold also reported comments from the 1989 conference “Software for Parallel Computers” in a presentation by Gordon Bell, designer of the Digital Equipment Corporation VAX range of minicomputers, indicating that the range was designed to perform well on the Whetstone Benchmark.

The Whetstone Benchmark also had high visibility concerning floating point performance of Intel CPUs and PCs, starting with the 1980 Intel 8087 coprocessor. This was reported in the 1986 Intel Application Report “High Speed Numerics with the 80186/80188 and 8087” .[10] The latter includes hardware functions for exponential, logarithmic or trigonometric calculations, as used in two of the eight Whetstone Benchmark tests, where these can dominate running time. Only two other benchmarks were included in the Intel procedures, showing huge gains over the earlier software based routines on all three programs.

Later tests, by a SSEMC Laboratory, evaluated Intel 80486 compatible CPU chips using their Universal Chip Analyzer .[11] Considering two floating point benchmarks, as used by Intel in the above report, they preferred Whetstone, stating “Whetstone utilizes the complete set of instructions available on early x87 FPUs”. This might suggest that the Whetstone Benchmark influenced the hardware instruction set.

By the 1990s the Whetstone Benchmark and results had become relatively popular. A notable quotation in 1985 was in “A portable seismic computing benchmark” quoting "The only commonly used benchmark to my knowledge is the venerable Whetstone benchmark, designed many years ago to test floating point operations" in the European Association of Geoscientists and Engineers Journal .[12]

Details of the Vector Whetstone Benchmark performance were also repeated, by Roy Longbottom, at the June 1990 Advanced Computing Seminar at Natural Environment Research Council Wallingford. This led to Council for the Central Laboratory of the Research Councils Distributed Computing Support collecting results from running “on a variety of machines, including vector supercomputers, minisupers, super-workstations and workstations, together with that obtained on a number of vector CPUs and on single nodes of various MPP machines “. More than 200 results are included, up to 2006, in the report available on the Wayback Machine Archive in entries to at least the year 2007 section .[13] The report also indicated “The wide variety of standard functions exercised (sqrt, exp, cos etc.) consume a far larger fraction of the reported times.”.

The First 1 MIPS minicomputer and Dhrystone benchmark

[edit]

On achieving 1 MWIPS, the Digital Equipment Corporation VAX-11/780 minicomputer became accepted as the first commercially available 32-bit computer to demonstrate 1 MIPS (Millions of Instructions Per Second), CERN ,[14] not really appropriate for a benchmark dependent on floating point speed. This had an impact on the Dhrystone Benchmark, the second accepted general purpose computer performance measurement program, with no floating point calculations. This produced a result of 1757 Dhrystones Per Second on the VAX 11/780, leading to a revised measurement of 1 DMIPS, (AKA Vax MIPS), by dividing the original result by 1757.

Later developments

[edit]

Following retirement from CCTA, Roy Longbottom continued providing free benchmarking and stress testing programs available on his web site, latterly roylongbottom.org.uk, with most development using C (programming language), via Microsoft Windows and Linux based Operating Systems on PCs. This was initially in conjunction with the Compuserve Benchmarks and Standards Forum, see Wayback Machine Archive, [15] covering PC hardware 1997 to 2008, providing numerous new benchmark results.

From 2008 to 2013 further PC results were collected privately. By then, PC processor operating clock speeds reached 4000 MHz and did not increase that much by the 2020s, reducing the need to gather results of the original scalar benchmark. In 2017 “Whetstone Benchmark History and Results” [16] was published for public access, with identified year of first delivery and purchase prices were added, also doubling the number of computers covered in the CCTA report. The most notable citation for this was by Tony Voellm, then Google Cloud Performance Engineering Manager, entitled “Cloud Benchmarking: Fight the black hole” .[17] This considered available benchmarks and performance by time with detailed graphs, including those from the Whetstone reports. At a later stage, 504 of the results, by year, were included in the report “Techniques used for analyzing basic performance measurements” .[18]

During this period, versions of the Whetstone Benchmark were produced to access Multithreading (computer architecture), initially for PCs running under Microsoft Windows, the latest supporting up to 8 CPUs or CPU cores particularly for those known as 4 core/8 thread varieties.

Compiler and interpreter efficiency

[edit]

The History report includes new sections for PC results, with CPUs from 1979, particularly those produced by up to 12 different compilers or interpreters, covering C/C++ ( up to 64 bit SSE level), Old Fortran, Basic and Java. These are based on the ratio MWIPS per MHz (multiplied by 100) to represent efficiency. Bottom line is one with a Core i7 CPU with ratings varying from 0.39, via the Basic Interpreter, to 311, via C, using 64 bit SSE options, then 1003 with the multithreading benchmarks, using all four CPU cores.

Results with individual test performance

[edit]

Another report “Whetstone Benchmark Detailed Later Results” [19] was produced in 2017. This document provides a summary of speeds of the eight test loops in the benchmark, as MfLOPS or MOPS plus the MWIPS ratings. There are 22 pages of results covering the same Windows based PCs as the Historic file with different compilers and compiling options, some with multithreaded versions. Later results cover PCs using Linux. Then there are others for a sample of Android phones and tablets and, at the time, the full range of Raspberry Pi computers. For the latter, Roy Longbottom had been recruited as a voluntary member of Raspberry Pi Foundation new products Alpha Testing Team.

Cray 1 supercomputer performance comparisons

[edit]

Later scalar, vector and multithreading results were included in a 2022 report “Cray 1 Supercomputer Performance Comparisons With Home Computers Phones and Tablets” .[20] This included the following, originally in a report on the first Raspberry Pi computer:

"In 1978, the Cray 1 supercomputer cost $7 Million, weighed 10,500 pounds and had a 115 kilowatt power supply. It was, by far, the fastest computer in the world. The Raspberry Pi costs around $70 (CPU board, case, power supply, SD card), weighs a few ounces, uses a 5 watt power supply and is more than 4.5 times faster than the Cray 1"

This claim was based on the official average performance of the Livermore Loops Benchmark that was used to demonstrate that the first Cray 1 met the required contractual requirements. The scalar Whetstone Benchmark achieved a much higher gain of 16.7 times improvement. The report includes comparisons with other supercomputers, a modern fairly fast laptop PC and the 2020 Raspberry Pi 400, where the latter obtained MWIPS gains over the Cray 1 of 155 times scalar, 38 vector and 593 scalar multithreading (4 CPU cores versus 1). The quad core laptop, using advanced SIMD compilations, obtained gains of 400, 215 and 3520 times respectively.

Detailed Results, Source and Executable Codes

[edit]

Whetstone Benchmark source codes, compiled programs and reports including results are currently (at the time of writing) on Roy Longbottom’s website roylongbottom.org.uk, but this has a limited lifetime.

For main reference purposes the HTML based reports were converted to PDF format and uploaded to ResearchGate. Brief descriptions of all files are included in an indexing file [21] (download via More v for menu choices). Unfortunately, the file structure was changed, disabling access to most older compressed files containing benchmark source codes and compiled programs.

The original website provides the same indexing format but includes the links to access both local files and those at ResearchGate, the former having options to download program codes.[22]

Presently, and hopefully for longtime future access, the website has been captured numerous times by the Wayback Machine Internet Archive site,[23] but all captures do not necessarily include compressed program files. If the file name is known, available captures can be found, such as for benchnt.zip (copy and modify link address),[24]

Other benchmarks and references

[edit]

The Whetstone benchmark primarily measures the floating-point arithmetic performance. A similar benchmark for integer and string operations is the Dhrystone.

See also

[edit]

References

[edit]
  1. ^ Curnow, H J; Wichmann, B A (1976). "A synthetic benchmark" (PDF). Computer Journal. 19 (1): 43–49. doi:10.1093/comjnl/19.1.43.
  2. ^ Brian A. Wichmann (1973). Algol 60 Compilation and Assessment. Academic Press. ISBN 0127482504.
  3. ^ Brian Randell; Lawford John Russell (1964). Algol 60 Implementation (PDF). Academic Press. ISBN 0-12-578150-4.
  4. ^ "The English Electric KDF9 Computer". Retrieved 28 April 2020.
  5. ^ Longbottom, R.; Stoate, K.W. (July 1972). "Acceptance Trials of Digital Computer Systems" (PDF). The Post Office Electrical Engineers Journal: 91. Retrieved 12 August 2024.
  6. ^ "CCTA Archive". National Archives. Retrieved 12 August 2024.
  7. ^ Longbottom, Roy. "Google Scholar References". Retrieved 12 August 2024.
  8. ^ Proceedings, Fourth International Conference on Supercomputing and Third World Supercomputer Exhibition. Santa Clara Convention Center, Santa Clara, CA, USA: International Supercomputing Institute. April 1989. Retrieved 12 August 2024.
  9. ^ Evaluating supercomputers: strategies for exploiting, evaluating and benchmarking computers with advanced architectures. Chapman & Hall, Ltd. United Kingdom. 1990. ASIN 0412378604.
  10. ^ "High Speed Numerics with the 80186/80188 and 8087" (PDF). 1986. Retrieved 12 August 2024.
  11. ^ "Investigating SSMEC's (State Micro) 486s with the UCA". Retrieved 12 August 2024.
  12. ^ Hatton, H. (1 August 1985). "A portable seismic computing benchmark". European Association of Geoscientists and Engineers Journal. 3 (8). doi:10.3997/1365-2397.1985016. Retrieved 12 August 2024.
  13. ^ "The CCLRC Vector Whetstone Benchmark Results Upt To 2006". Retrieved 12 August 2024.
  14. ^ "CERN-OBJ-IT-025 Computing and computers Model of the VAX-11/780". Retrieved 12 August 2024.
  15. ^ "Compuserve Benchmarks and Standards Forum". Wayback Machine Archive. Archived from the original on 6 December 2008. Retrieved 12 August 2024.
  16. ^ Longbottom, Roy (July 2017). "Whetstone Benchmark History and Results". researchgate.net. doi:10.13140/RG.2.2.26267.77603. Retrieved 12 August 2024.
  17. ^ Voellm, A.F. (September 2013). "Cloud Benchmarking: Fight the black hole" (PDF). Retrieved 12 August 2024.
  18. ^ Jones, Derek. "Techniques used for analyzing basic performance measurements". Retrieved 14 August 2024.
  19. ^ Longbottom, Roy (July 2017). "Whetstone Benchmark Detailed Later Results". researchgate.net. doi:10.13140/RG.2.2.32506 (inactive 1 November 2024). Retrieved 12 August 2024.{{cite web}}: CS1 maint: DOI inactive as of November 2024 (link)
  20. ^ Longbottom, Roy (March 2022). "Cray 1 Supercomputer Performance Comparisons With Home Computers Phones and Tablets". researchgate.net. doi:10.13140/RG.2.2.27437.56804. Retrieved 12 August 2024.
  21. ^ Longbottom, Roy. "Computer Benchmarks and Stress Tests and Performance History Index". Retrieved 18 October 2024.
  22. ^ Longbottom, Roy. "Computer Benchmarks and Stress Tests and Performance History Index (HTM)". Retrieved 18 October 2024.
  23. ^ Longbottom, Roy. "Wayback Archive Index Captures". Retrieved 18 October 2024.
  24. ^ Longbottom, Roy. "Example file access from Archive". Retrieved 18 October 2024.
[edit]