This page covers the Kernel Compilation Benchmark, which is often used to provide a rough comparison of system performance. This page used to use a 2.4.19 default config to do this benchmark, this data still exists at KernelCompilationTimes2.4. The 2.4.19 kernel is a bit old now, and the 2.6 build process has changed a lot, so we've updated this to use 2.6.8 as the test Kernel.
A few things have changed - there is no longer any need to run make dep or make modules, so there will only be one time output. You will need to run make defconfig first, otherwise it will try to build a host-specific config for your computer.
It's still important to perform the compile as soon as you untar the Kernel source, to ensure the source is still in disk cache.
(In /usr/src, with the 2.6.8 source downloaded already)
tar jxf linux-2.6.8.tar.bz2 # or tar zxf linux-2.6.8.tar.gz cd linux-2.6.8 # use the default config make defconfig /usr/bin/time -p -o /tmp/dep.time make
If you have a machine with more than one processor, you can use make -j n .... where n is the number of cpus + 1
processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 2.80GHz stepping : 9 cpu MHz : 2793.238 cache size : 512 KB
processor : 1 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(TM) MP 1800+ stepping : 2 cpu MHz : 1533.398 cache size : 256 KB
processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 5 model name : AMD Opteron(tm) Processor 244 stepping : 8 cpu MHz : 1792.241 cache size : 1024 KB
processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 10 cpu MHz : 999.703 cache size : 256 KB
processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 12 model name : AMD Athlon(tm) 64 Processor 3000+ stepping : 0 cpu MHz : 2009.804 cache size : 512 KB
processor : vendor_id : cpu family : model : model name : stepping : cpu MHz : cache size :