Linux Kernel Compilation Benchmark

by
Editor, CPUReview

Copyright July 1, 1998
ALL RIGHTS RESERVED

I have purchased a K6-2/266Mhz processor and a Soyo 5EHM Super7 motherboard specifically so that I would be able to benchmark the K6-2 against Intel PII and Cyrix processors. Since I have been running Linux since the v0.10 days, I thought it would be useful to perform some benchmarks under Linux. Here are my findings.

As I have time (and access to equipment) to add additional results, I will update this page. Soon I hope to add PII results (ABIT LX6, 64Mb 10ns Hyundai SDRAM, Riva 128, same 1.6Gb WD hard drive).

System Description - Super Socket 7

System Description - Slot 1

Methodology


Cyrix/IBM PR233 Results


PR Rating Voltage Setting BogoM User System Elapsed CPU util
PR200 2.9 2.5X66 166.30 283.22 21.26 5:28.56 92%
PR233 2.9 2X100 199.88 236.4 17.48 4:35.97 91%
PR233 2.9 2.5X75 187.19 257.99 20.17 5:01.32 92%
PR266 2.9 2.5X83 207.67 233.75 19.51 4:35.40 91%

AMD K6-2 266 Results

PR Rating Voltage Setting BogoM User System Elapsed CPU util
166 2.3 2.5x66 332.60 274.57 24.11 5:22.43 92%
187.5 2.2 2.5x75 374.37 244.5 20.38 4:47.52 92%
200 2.3 3x66 398.95 242.10 21.42 4:37.33 91%
210 2.2 2.5x83 415.33 221.5 19.96 4:18.61 93%
233 2.3 3.5x66 465 220.53 19.55 4:24.61 90%
250 2.2 2.5x100 499.71 183.13 17.64 3:43.42 89%
266 2.3 4x66 530.84 199.90 19.55 4:04.19 89%
280 2.2 2.5x112 558.69 164.17 15.29 3:23.83 88%
300 2.3 4.5x66 598.02 187.84 19.63 3:51.50 89%
300 2.3 4x75 598.02 176.94 19.26 3:37.84 90%
300 2.3 3x100 599.65 161.73 15.06 3:20.87 88%

Intel Pentium-II 233 Results

PR Rating Voltage Setting BogoM User System Elapsed CPU util
233 Default 3.5x66 233.47 197.46 15.25 3:57.26 89%
262.5 Default 3.5x75 262.14 180.75 12.73 3:38.96 88%
291.7 Default 3.5x83 291.64 157.49 11.69 3:12.69 87%

Simulated Celeron Results - Intel Pentium-II 233 with L2 Cache disabled

PR Rating Voltage Setting BogoM User System Elapsed CPU util
233 Default 3.5x66 233.47 324.07 20.19 6:08.43 93%
262.5 Default 3.5x75 262.14 291.43 16.96 5:32.61 92%
291.7 Default 3.5x83 291.64 262.19 16.10 5:02.45 92%


Discussion of results


Please note, in the comparisons below, only the "User" time of the kernel compilations is used.

BogoMips is equivalent to the megahertz it is running at, and the AMD K6-2 has a BogoMips rating that is twice the megahertz it is run at.

In order to be able to make a direct, Mhz-to-Mhz comparison of the processors, I underclocked the K6-2 to run at 2.5x75 (Cyrix PR233 rating) and 2.5x83 (PR266 rating). Comparing the total elapsed time for the compilation, we find that:

Comparison by actual Mhz

CPU Cyrix Amd Amd % faster
2.5x75 257.99 244.5 5.23%
2.5x83 233.75 221.5 5.24%

The AMD K6-2 processor seems to be 5.25% faster than a Cyrix MX processor at the same clock speed. The PR rating system would not seem to apply to Linux kernel compilations.

Comparison by PR rating

CPU Cyrix Amd Amd % faster
PR233 257.99 220.53 14.52%
PR266 233.75 199.90 14.48%

The AMD K6-2 is 14.5% faster than a Cyrix/IBM 686MX when comparing a K6-2 at the same Mhz as a Cyrix chip is PR rated for.

How about the Pentium II?

I wanted to see how the P2 would compare to the K6-2. As I only have a P2-233, I had to overclock it to approach 300Mhz. Please note, I used an extra 3" fan blowing air at the CPU.

Comparison between P2 and K6-2

CPU P2 Amd P2 % faster
266Mhz #1 180.75 183.13 1.3%
300Mhz #2 157.49 161.71 2.6%

NOTES

  1. P2 at 262.5Mhz (75x3.5), K6-2 at 250Mhz (2.5x100)
  2. P2 at 291.6Mhz (83x3.5), K6-2 at 300Mhz (3x100)

The P2 was faster for compiling the kernel by less than three percent. There is no point in comparing the K6-2 to the Celeron - see the simulated Celeron benchmarks on the previous page. The Celeron is not suitable for use as a Linux development machine.


Price Comparison


As we all know, absolute performance is just part of deciding which processor to get. If cost was no object, we would all be running Kryotech Alpha 767's, or dual PII-400's. For reference purposes, here are some prices, in US$, as 1:14pm PST of July 5 from PriceWatch.

CPU 233 266 300
Cyrix $49 $74 $96
AMD K6-2 n/a $113 $163
AMD K6 $68 $93 $125
Pentium II $158 $177 $235

Conclusion

There is no question that the Cyrix processors provide excellent performance for a low cost. The K6 (non-3d) processors are also an excellent value, however as I don't have such a CPU I was unable to run tests on one - but I would expect that on the same motherboard with similar memory and hard disk the performance of the plain K6's would be very close to the K6-2's.

The K6-2 appears to be an excellent value for a developer's machine. A 14.5% increase in speed over the 686MX is difficult to ignore. The P2 is less than three percent faster than the K6-2 at comparable speeds. I do not think that such a small difference in speed justifies the price differential between the P2 and the K6-2.

I hope you found this article to be of use. Please remember that I welcome feedback on this (or other) articles. I can be contacted at

Regards,


Editor, CPUReview



Copyright © 1998, William Henning
Published in Issue 32 of Linux Gazette, September 1998


[ TABLE OF CONTENTS ] [ FRONT PAGE ]  Back  Next