mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-18 21:47:08 +02:00
* Introduce Golang-based benchmarking utility * benchmark fio: properly configure logger level * benchmark: properly terminate on Ctrl+C when initializing/running Tart * benchmark(fio): increase runtime to 30 seconds * benchmark(fio): IOPS are already per second * benchmark(fio): --numjobs 1 --iodepth 1 --end_fsync 1 * benchmark(README.md): add results
30 lines
928 B
Go
30 lines
928 B
Go
package fio
|
|
|
|
type Benchmark struct {
|
|
Name string
|
|
Command string
|
|
}
|
|
|
|
var benchmarks = []Benchmark{
|
|
{
|
|
Name: "Random writing of 1MB",
|
|
Command: "fio --rw randwrite --runtime 30 --time_based --unlink 1 --output-format json " +
|
|
"--size 1MB --name unnamed --numjobs 1 --iodepth 1 --end_fsync 1",
|
|
},
|
|
{
|
|
Name: "Random writing of 10MB",
|
|
Command: "fio --rw randwrite --runtime 30 --time_based --unlink 1 --output-format json " +
|
|
"--size 10MB --name unnamed --numjobs 1 --iodepth 1 --end_fsync 1",
|
|
},
|
|
{
|
|
Name: "Random writing of 100MB",
|
|
Command: "fio --rw randwrite --runtime 30 --time_based --unlink 1 --output-format json " +
|
|
"--size 100MB --name unnamed --numjobs 1 --iodepth 1 --end_fsync 1",
|
|
},
|
|
{
|
|
Name: "Random writing of 1000MB",
|
|
Command: "fio --rw randwrite --runtime 30 --time_based --unlink 1 --output-format json " +
|
|
"--size 1000MB --name unnamed --numjobs 1 --iodepth 1 --end_fsync 1",
|
|
},
|
|
}
|