什么是unixbench?
UnixBench是一个类unix系(Unix,BSD,Linux)统下的性能测试工具,一个开源工具,被广泛用与测试linux系统主机的性能。Unixbench的主要测试项目有:系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C库等系统基准性能提供测试数据。
unixbench项目地址:https://github.com/kdlucas/byte-unixbench
使用教程
1.下载unixbench
wget https://github.com/kdlucas/byte-unixbench/archive/refs/tags/v5.1.3.tar.gz
2.解压压缩包
tar -zxvf v5.1.3.tar.gz
3.进入解压后的压缩包目录
cd byte-unixbench-5.1.3/UnixBench/
4.编译安装
make
5.运行unixbench
./Run
使用过程中可能出现的错误
1.第四步make时报错-bash: make: command not found
2.同样是第四步make时报错:
Checking distribution of files
./pgms exists
./src exists
./testdir exists
gcc -o ./pgms/arithoh -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Darithoh ./src/arith.c
make: gcc: Command not found
make: *** [Makefile:185: pgms/arithoh] Error 127
3.第五步./Run运行时报错:
Can't locate Time/HiRes.pm in @INC (you may need to install the Time::HiRes module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./Run line 6.
BEGIN failed--compilation aborted at ./Run line 6.
叨叨几句... 1 条评论
1 博主
测试