Disk Read Benchmark - A simple and performant read-only disk benchmark, written in Rust
Find a file
2024-11-12 19:21:32 -06:00
src add readme details and update 2024-11-12 11:46:12 -06:00
.gitignore random file generation works and is somewhat fast 2024-10-25 00:12:10 -05:00
Cargo.lock add readme details and update 2024-11-12 11:46:12 -06:00
Cargo.toml add command completion generation 2024-11-12 11:22:42 -06:00
prepare.sh make prepare.sh create ext-workdir to coincide with an earlier change 2024-11-12 19:21:32 -06:00
README.md add readme details and update 2024-11-12 11:46:12 -06:00

Read-only benchmark

This tests the latency, sequential read, and random read speeds of a variety of data.

Installation

To install this, run the following:

git clone https://git.askiiart.net/askiiart/disk-read-benchmark
cd ./disk-read-benchmark/
cargo update
cargo install --path .

Make sure to generate and add the completions for your shell:

  • bash: disk-read-benchmark generate-bash-completions | source
  • zsh: disk-read-benchmark generate-zsh-completions | source
  • fish: disk-read-benchmark generate-fish-completions | source

(note that this only lasts until the shell is closed)

Running

The program will automatically generate all data used, except for the regular polygon data. Once the data is generated, stop the program with Ctrl+C, then run prepare.sh to archive and mount the data using DwarFS, tar, and fuse-archive.

It will output its data at ./data/benchmark-data.csv and ./data/bulk.csv in these formats:

benchmark-data.csv:

filesystem dir,file path,sequential read time,sequential read latency,random read time,random read latency

bulk.csv:

filesystem dir,folder path,test type,time1,time2,time3,[...]