Recentryl playing with phoronix-test-suite (aka pts). A wonderful toolkit that provides a lot of benchmarks, eventually downloading and installing the one you need.
Tests include aio-stress, iozone, pbzip2, phpbench and pybench.
Strangely enough I didn’t find a quickstart for custom batch benchmarking. Phoronix provide a batch-setup that’s quite inflexible, so here we are.
Running custom bench is simple and is done via env variables:
1. find the test definition file and get the parameters
# find .phoronix-test-suite/ -path \*iozone\*test-definition.xml
Values are 0 for the first option, 1 for the second and so on.
2. set the values in PRESET_OPTIONS
PRESET_OPTIONS=”iozone.record-size=0;”
PRESET_OPTIONS+=”iozone.file-size=0;”
export PRESET_OPTIONS+=”iozone.test=0″
3. set test name, identifier and description
export TEST_RESULTS_NAME=iozone-$s-${PRESET_OPTIONS//;/_}
export TEST_RESULTS_IDENTIFIER=$TEST_RESULTS_NAME-$(date +%s)
export TEST_RESULTS_DESCRIPTION=$TEST_RESULTS_NAME-$(date +$s)
4. run the test with
#phoronix-test-suite benchmark pts/iozone
5. get test values in
ls .phoronix-test-suite/test-results/