#!/bin/bash TEST_DIR="/tmp/fio-test" mkdir -p $TEST_DIR # For macOS, use posixaio engine ENGINE="posixaio" echo "Testing with async I/O engine: $ENGINE" # Sequential tests (these are already good) fio --name=seq-read --rw=read --size=2G --bs=1M \ --numjobs=1 --time_based --runtime=30 \ --group_reporting --directory=$TEST_DIR fio --name=seq-write --rw=write --size=2G --bs=1M \ --numjobs=1 --time_based --runtime=30 \ --group_reporting --directory=$TEST_DIR # Random tests with proper async I/O fio --name=rand-read --rw=randread --size=2G --bs=4k \ --numjobs=4 --iodepth=64 --ioengine=$ENGINE \ --time_based --runtime=30 --group_reporting \ --directory=$TEST_DIR fio --name=rand-write --rw=randwrite --size=2G --bs=4k \ --numjobs=4 --iodepth=64 --ioengine=$ENGINE \ --time_based --runtime=30 --group_reporting \ --directory=$TEST_DIR rm -rf $TEST_DIR/*