Skip to content

benchmark for testing VPS, PCs; fast and simple, Scripts for automating the execution and results collection using the command-line version of Geekbench

License

Notifications You must be signed in to change notification settings

mikeyang01/Benchmark_script_for_VPS

Repository files navigation

VPS Benchmark Tool Collection

English | 简体中文

Lightweight benchmark scripts for Linux VPS (Ubuntu/Debian/CentOS/RHEL).

Current status

Keep

  • geekbench.sh: now downloads and runs Geekbench Linux package via HTTPS (defaults to Geekbench 6).
  • fio / stress-ng: still useful for disk and stability testing.

Deprecated (recommended to remove from your workflow)

  • rebrand.ly short links: opaque destination, poor maintainability.
  • sivel/speedtest-cli Python script: repository archived (read-only on 2026-01-21).
  • git.io/superbench short URL: git.io service is discontinued.

CPU benchmark (Geekbench)

Run from this repository:

bash geekbench.sh

Optional: override version when a new release is available:

GB_VERSION=6.5.0 bash geekbench.sh

One-command full benchmark

Run CPU + disk + network and store all outputs under ./reports/<timestamp>/:

bash vps-bench.sh

Run without git clone (single command):

bash <(curl -fsSL https://raw.githubusercontent.com/mikeyang01/Benchmark_script_for_VPS/master/bench.sh)

Pass options through:

bash <(curl -fsSL https://raw.githubusercontent.com/mikeyang01/Benchmark_script_for_VPS/master/bench.sh) --quick

Useful options:

# Faster run
bash vps-bench.sh --quick

# Skip specific tests
bash vps-bench.sh --no-cpu
bash vps-bench.sh --no-disk
bash vps-bench.sh --no-net

# Include point-to-point throughput test
bash vps-bench.sh --iperf-server <server-ip>

Recommended additions

1) Official Speedtest CLI (Ookla)

Use the maintained official binary package instead of archived Python clients:

# Debian/Ubuntu example
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install -y speedtest
speedtest

2) iPerf3 (point-to-point throughput)

sudo apt-get install -y iperf3
# Example: iperf3 -c <server-ip> -P 4 -t 20

3) fio (disk profile test)

sudo apt-get install -y fio
fio --name=randrw --filename=testfile --size=1G --bs=4k --rw=randrw --iodepth=64 --runtime=60 --numjobs=4 --group_reporting

4) stress-ng (stability / thermal)

sudo apt-get install -y stress-ng
stress-ng --cpu 4 --io 2 --vm 2 --timeout 60s

More tools by scenario

Basic (daily benchmark)

sysbench

sudo apt-get install -y sysbench
sysbench cpu --threads=4 --time=30 run

mtr

sudo apt-get install -y mtr
mtr -rwzc 20 1.1.1.1

lm-sensors

sudo apt-get install -y lm-sensors
sensors

App-level load test

k6

sudo apt-get install -y k6
k6 run - < <(cat <<'EOF'
import http from 'k6/http';
import { sleep } from 'k6';
export default function () {
  http.get('https://example.com');
  sleep(1);
}
EOF
)

Advanced troubleshooting

bpftrace

sudo apt-get install -y bpftrace
sudo bpftrace -e 'BEGIN { printf("bpftrace ready\n"); exit(); }'

bcc tools

sudo apt-get install -y bpfcc-tools
sudo /usr/sbin/execsnoop-bpfcc

Phoronix Test Suite

sudo apt-get install -y phoronix-test-suite
phoronix-test-suite benchmark compress-7zip

GPU stress test

Web-based (quick check)

No installation needed. Open in a browser: https://cznull.github.io/vsbm

CLI (server-friendly, NVIDIA)

git clone https://github.com/wilicc/gpu-burn.git
cd gpu-burn
make
./gpu_burn 60

Optional all-in-one scripts

If you still want one-command community scripts, prefer direct upstream URLs (not short links), and pin versions when possible.

Sample image

About

benchmark for testing VPS, PCs; fast and simple, Scripts for automating the execution and results collection using the command-line version of Geekbench

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages