
本文共 3285 字,大约阅读时间需要 10 分钟。
UnixBench������������������Unix������������Unix���BSD���Linux������������������������������������������������������Linux������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ UnixBench ���������������������������������
������������
1. Dhrystone 2 (���������������������)
- ���������������������������������������������CPU���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
2. Double-Precision Whetstone
- ������������������������������������������������������������������������������������sin���cos���sqrt���exp���log���������������������������������������������������������������������������
3. Execl Throughput
- ������������������
execl
���������������������������������������������������������������������������������������������������������������������������������������������
4. File Copy
- ���������������������������������������������������������������������������������������������������������������10������������������������������
5. Pipe Throughput
- ������������������������������������������512������������������������������������������������������������������������������������������������������������������������������������������������������������
6. Pipe-based Context Switching
- ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������context���������
7. Process Creation
- ���������������������������������������������������������������������������������������������������������������������������������������������������������������������
8. System Call Overhead
- ������������������
getpid
���������������������������������������������������������������������������������������������������
9. Shell Scripts
- ������������������������������������������������������������������������������������������������n���������1���2���4���8������������������������������������
���������������
���������������
���GitHub������������������������������������������������������������
git clone https://github.com/kdlucas/byte-unixbench.git
������������
-
ARM������������
sed -i 's/-mtune=native//' Makefilesed -i 's/-march=native//' Makefilesed -i 's/$field eq "bogomips"/$field eq "bogomips" or $field eq "BogoMIPS"/' Run
-
X86������������ ������������������������������������������������
make
-
���������������
./Run -c 4 dhry2reg # CPU ������������������./Run -c 4 whetstone # CPU ���������������������
������������������
���������������������������������������������wget���
- CentOS���
yum -y install wget
- Ubuntu/Debian���
apt-get -y install wget
������������
������������
wget --no-check-certificate https://github.com/zq/unixbench/raw/master/unixbench.shchmod +x unixbench.sh./unixbench.sh
������������������������������������������������������������������������������������������������
UnixBench ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
