Bir çok arkadaşımızın merak ettiği linux üzerindeki performans testinin nasıl yapılacağını sizlere anlatmaya çalışacağım. Öncelikle ihtiyacımız olan yazılımı download edelim.
$ wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz
Daha sonra ihtiyacımız olan “lbXext” paketini kuralım.
$ yum -y install libXext-devel
İndirmiş olduğunuz dosyayı açalım
$ tar zxvf unixbench-5.1.2.tar.gz
Klasörün içine girelim
$ cd unixbench-5.1.2/
Aşağıdaki kod ile performans testine başlayalım.
$ ./Run dhry2reg whetstone-double syscall pipe context1 spawn execl shell1 shell8 shell16
Not: İşlem ortalama 15 dk kadar sürecek ve aşağıki gibi bir sonuç alacaksınız. Yukarıdaki adımlarda HDD in performansı görmezden gelinmiştir. Zira SCSI disk kullanılmaması durumunda performansın görülmesi için daha net değer verecektir.
========================================================================
BYTE UNIX Benchmarks (Version 5.1.2)
System: lin73.databilisim.com: GNU/Linux
OS: GNU/Linux — 2.6.18-164.el5 — #1 SMP Thu Sep 3 03:28:30 EDT 2009
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
CPU 0: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz (4411.5 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
00:12:01 up 13 days, 21:01, 1 user, load average: 0.25, 0.16, 0.15; runlevel 3
————————————————————————
Benchmark Run: Fri Sep 03 2010 00:12:01 – 00:35:54
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 12282632.5 lps (10.0 s, 7 samples)
Double-Precision Whetstone 2418.2 MWIPS (9.7 s, 7 samples)
Execl Throughput 2722.1 lps (29.7 s, 2 samples)
Pipe Throughput 959615.7 lps (10.0 s, 7 samples)
Pipe-based Context Switching 289446.2 lps (10.0 s, 7 samples)
Process Creation 12821.7 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 5298.0 lpm (60.0 s, 2 samples)
Shell Scripts (16 concurrent) 368.3 lpm (60.1 s, 2 samples)
Shell Scripts (8 concurrent) 728.5 lpm (60.1 s, 2 samples)
System Call Overhead 786793.8 lps (10.0 s, 7 samples)
System Benchmarks Partial Index BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 12282632.5 1052.5
Double-Precision Whetstone 55.0 2418.2 439.7
Execl Throughput 43.0 2722.1 633.0
Pipe Throughput 12440.0 959615.7 771.4
Pipe-based Context Switching 4000.0 289446.2 723.6
Process Creation 126.0 12821.7 1017.6
Shell Scripts (1 concurrent) 42.4 5298.0 1249.5
Shell Scripts (16 concurrent) — 368.3 —
Shell Scripts (8 concurrent) 6.0 728.5 1214.1
System Call Overhead 15000.0 786793.8 524.5
========
System Benchmarks Index Score (Partial Only) 798.8
Buradaki test programımıza göre sanal bir makinada 798.8 değeri çıkmıştır. Ortalama olarak c2d makinada 1.500 civarında vermektedir.