Summary
Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04
Recent Commits
>
--git a/pts/benchmark-profiles/iozone.xml b/pts/benchmark-profiles/iozone.xml
new file mode 100644
index 0000000..03635eb
--- /dev/null
+++ b/pts/benchmark-profiles/iozone.xml
@@ -0,0 +1,41 @@
+<PTSBenchmark>
+ <PhoronixTestSuite>
+ <Version>0.2</Version>
+ <BenchmarkType>Hard Disk</BenchmarkType>
+ <ApplicationType>Utility</ApplicationType>
+ <License>FREE</License>
+ <Status>VERIFIED</Status>
+ <Maintainer>Michael Larabel</Maintainer>
+ </PhoronixTestSuite>
+ <Information>
+ <Title>IOzone</Title>
+ <Version>3.291</Version>
+ <Identifier>iozone</Identifier>
+ <Executable>iozone</Executable>
+ <TimesToRun>2</TimesToRun>
+ <ResultScale>MB/s</ResultScale>
+ <Proportion>HIB</Proportion>
+ <Description>The IOzone benchmark tests your hard disk drive performance.</Description>
+ <Notes></Notes>
+ </Information>
+ <Settings>
+ <Default>
+ <Arguments>-s 904800 -r 1</Arguments>
+ </Default>
+ <Option>
+ <DisplayName>Disk Test</DisplayName>
+ <Identifier>test</Identifier>
+ <ArgumentName></ArgumentName>
+ <Menu>
+ <Entry>
+ <Name>Write</Name>
+ <Value>-i0</Value>
+ </Entry>
+ <Entry>
+ <Name>Read</Name>
+ <Value>-i0 -i1</Value>
+ </Entry>
+ </Menu>
+ </Option>
+ </Settings>
+</PTSBenchmark>
diff --git a/pts/benchmark-resources/iozone/install.sh b/pts/benchmark-resources/iozone/install.sh
new file mode 100644
index 0000000..190b68f
--- /dev/null
+++ b/pts/benchmark-resources/iozone/install.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+cd $1
+
+if [ ! -f iozone3_291.tar ]
+ then
+ wget http://www.iozone.org/src/current/iozone3_291.tar -O iozone3_291.tar
+fi
+
+tar -xvf iozone3_291.tar
+cd iozone3_291/src/current/
+
+case `uname -m` in
+ "x86_64" )
+ make linux-AMD64
+ ;;
+ * )
+ make linux
+ ;;
+esac
+mv iozone ../../../iozone
diff --git a/pts/benchmark-resources/iozone/parse-results.php b/pts/benchmark-resources/iozone/parse-results.php
new file mode 100644
index 0000000..ec1fb84
--- /dev/null
+++ b/pts/benchmark-resources/iozone/parse-results.php
@@ -0,0 +1,27 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], " 904800 "));
+$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n"));
+$BENCHMARK_RESULTS = explode(" ", $BENCHMARK_RESULTS);
+
+$R_count = 0;
+$result = 0;
+foreach($BENCHMARK_RESULTS as $R)
+{
+ if(!empty($R))
+ {
+ $R_count++;
+
+ if($R_count == 3 || $R_count == 5)
+ {
+ $result = $R;
+ }
+ }
+}
+
+if($result != 0)
+ $result = $result / 1024;
+
+echo $result;
+
+
Copyright © 2010 by Phoronix Media