Recently I tried to use a benchmark script I'd used previously for a quick check of VPS CPU, Disk and Network. However, it's no longer online. As a result I wanted to keep a list of scripts and tools for benchmarking Linux servers. Submit suggestions.
$ bash <(wget --no-check-certificate -O - https://raw.github.com/mgutz/vpsbench/master/vpsbench)
Benching I/O ... OK
Benching CPU. Bzipping 25MB file ... OK
Benching inbound network. Downloading 100MB file ... OK
Share at https://github.com/mgutz/vpsbench/wiki/VPS-Hosts
CPU model: Common KVM processor
Number of cores: 6
CPU frequency: 2399.998 MHz
Total amount of RAM: 3011 MB
Total amount of swap: MB
System uptime: 11 days, 2:04,
I/O speed: 910 MB/s
Bzip 25MB: 4.22s
Download 100MB file: 107MB/s
$ wget http://busylog.net/FILES2DW/busytest.sh -O - -o /dev/null | bash
__
|__) _ | _ _ _ _|_
|__)|_|_)\/|(_)(_). | )(-|_
/ _/
http://busylog.net
-----------------------------
busyupload.sh V0.1
\|/
This is a early version with learning purpose... check the TODO
Some logs here: ftp_busy.log
-----------------------------
Check what we have installed here...
openssl......installed (YES)
wget.........installed (YES)
ftp..........not installed (NO)
ioping.......installed (YES)
hdparm.......installed (YES)
-----------------------------
Network upload test....
not performed tests.... test needs ftp and wget installed
-----------------------------
Test openSSL speeds (openssl signatures speed)....
Doing 512 bit private rsa's for 10s: 160961 512 bit private RSA's in 10.00s
Doing 512 bit public rsa's for 10s: 2403890 512 bit public RSA's in 10.00s
Doing 1024 bit private rsa's for 10s: 59315 1024 bit private RSA's in 10.00s
Doing 1024 bit public rsa's for 10s: 902191 1024 bit public RSA's in 10.00s
Doing 2048 bit private rsa's for 10s: 7758 2048 bit private RSA's in 10.00s
...
OpenSSL 1.1.0f 25 May 2017
built on: reproducible build, date unspecified
options:bn(64,64) rc4(8x,char) des(int) aes(partial) blowfish(ptr)
compiler: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE...
sign verify sign/s verify/s
rsa 512 bits 0.000062s 0.000004s 16096.1 240389.0
rsa 1024 bits 0.000169s 0.000011s 5931.5 90219.1
rsa 2048 bits 0.001289s 0.000035s 775.8 28701.2
...
-----------------------------
Disk seek rate test (ioping)....
--- . (ext4 /dev/sda1) ioping statistics ---
14.9 k requests completed in 2.96 s, 58.4 MiB read, 5.06 k iops, 19.8 MiB/s
generated 15.0 k requests in 3.00 s, 58.4 MiB, 4.98 k iops, 19.5 MiB/s
min/avg/max/mdev = 61.9 us / 197.8 us / 5.88 ms / 97.4 us
-----------------------------
Direct (not cached) disk reads (hdparm)....
Test disk /dev/sda1
/dev/sda1:
Timing O_DIRECT disk reads: 3624 MB in 3.00 seconds = 1207.86 MB/sec
Linux Bench
https://github.com/STH-Dev/linux-bench - Linux-Bench is a sscript that runs hardinfo, Unixbench 5.1.3, c-ray 1.1, STREAM, OpenSSL, sysbench (CPU), crafty, redis, NPB, NAMD, and 7-zip benchmarks.
http://www.textuality.com/bonnie/ - Bonnie is a benchmark which measures the performance of Unix file system operations. Bonnie is concerned with identifying bottlenecks.
请发表评论