Files
kopia/tests/perf_benchmark/perf-benchmark-setup.sh
Jarek Kowalski c7be3a0c87 testing: added performance benchmark (#618)
The benchmarks creates 20 GB of files in different configurations

* 10 x 2 GB files
* 100 x 200 MB files
* 1000 x 20 MB files

and backs them up to a local filesystem repository measuring time,
CPU and RAM usage.

The benchmarking script uses GCP instance (n1-standard-8) with fast NVME
flash to eliminate local filesystem latency.

Current performance numbers show major improvement in latency in
0.7.0-rc1 due to splitter throughput optimization (#606).
2020-09-15 21:30:08 -07:00

13 lines
240 B
Bash
Executable File

#!/bin/sh
set -e
# install tools
sudo apt install -y fio python3-pip
sudo pip3 install psrecord
# format /mnt/data partition
sudo mkfs.ext4 -F /dev/nvme0n1
sudo mkdir /mnt/data
sudo mount /dev/nvme0n1 /mnt/data
sudo chown $USER /mnt/data