UnixBench 是 Linux 平台經典的單核/多核效能基準測試套件,涵蓋整數/浮點運算、檔案 I/O、程序建立、Shell 腳本、系統呼叫等 10 項測試,輸出綜合分數(Index Score)供跨平台比較。
wget https://www.CTOHome.com/linux-vps-pack/unixbench.sh; sh ./unixbench.sh
BYTE UNIX Benchmarks (Version 4.1-wht.2)
System: Linux vps59.ctohome.com 2.6.18... i686 GNU/Linux
TEST BASELINE RESULT INDEX
Dhrystone 2 (register vars) 376783.7 16303866.8 432.7
Double-Precision Whetstone 83.1 1299.8 156.4
Execl Throughput 188.3 7725.8 410.3
File Copy 1024 bufsize 2000 2672.0 165150.0 618.1
File Copy 256 bufsize 500 1077.0 55402.0 514.4
File Read 4096 bufsize 8000 15382.0 1577261.0 1025.4
Pipe-based Context Switching 15448.6 600615.4 388.8
Pipe Throughput 111814.6 2184246.1 195.3
Process Creation 569.3 22116.2 388.5
Shell Scripts (8 concurrent) 44.8 1213.8 270.9
System Call Overhead 114433.5 1758851.2 153.7
========
FINAL SCORE 354.5
| 分數區間 | 等級 | 典型配置 |
|---|---|---|
| < 100 | 低效能 | 舊款 P4 單核、嚴重超售 VPS |
| 100 - 300 | 入門/中階 | 雙核/四核共享核心、標準 VPS |
| 300 - 600 | 高效能 | 獨立核心、NVMe 儲存、輕度超售 |
| > 600 | 頂級 | 獨享 CPU、全閃存陣列、專用主機 |
# 僅跑單核測試 ./Run -c 1 # 指定測試項目 ./Run dhry2reg whetstone-double execl # 多核測試(N 為核心數) ./Run -c N