diff options
| author | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-26 09:10:17 -0400 |
|---|---|---|
| committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-04-26 09:10:17 -0400 |
| commit | 89479b6527039586ec1e7836e2f442bd1c17ee91 (patch) | |
| tree | c9eab4f9593cd38a2591074ecf5a6a7244ce955c | |
| parent | 299e597047673d2cc19852c16c62c1bc51b98d36 (diff) | |
| download | phoronix-test-suite-upstream-89479b6527039586ec1e7836e2f442bd1c17ee91.tar.gz phoronix-test-suite-upstream-89479b6527039586ec1e7836e2f442bd1c17ee91.tar.xz phoronix-test-suite-upstream-89479b6527039586ec1e7836e2f442bd1c17ee91.zip | |
Add 7-Zip Compression Benchmark
| -rw-r--r-- | CHANGE-LOG | 1 | ||||
| -rw-r--r-- | pts/benchmark-profiles/compress-7zip.xml | 17 | ||||
| -rw-r--r-- | pts/benchmark-profiles/compress-gzip.xml | 2 | ||||
| -rw-r--r-- | pts/benchmark-resources/compress-7zip/downloads.xml | 8 | ||||
| -rw-r--r-- | pts/benchmark-resources/compress-7zip/install.sh | 12 | ||||
| -rw-r--r-- | pts/benchmark-resources/compress-7zip/parse-results.php | 14 |
6 files changed, 53 insertions, 1 deletions
@@ -11,6 +11,7 @@ Phoronix Test Suite - Add IgnoreFirstRun argument for test profiles - Add support for a test profile to have a downloads.xml file inside their resources folder that contains all of the files that need to be downloaded. Phoronix Test Suite then handles the downloading internally as well as verifying the MD5 sums, downloading from a random URL if multiple URLs are specified, etc. Some other features will come about soon for those using downloads.xml for acquiring all needed files - Drop bcdiv/bcmath dependency for pts_Graph, switch to internal function for trimming doubles +- Add 7-Zip compression benchmark Phoronix Test Suite 0.4.0 April 24, 2008 diff --git a/pts/benchmark-profiles/compress-7zip.xml b/pts/benchmark-profiles/compress-7zip.xml new file mode 100644 index 0000000..727a7af --- /dev/null +++ b/pts/benchmark-profiles/compress-7zip.xml @@ -0,0 +1,17 @@ +<PTSBenchmark> + <PhoronixTestSuite> + <Version>0.4</Version> + <BenchmarkType>Processor</BenchmarkType> + <ApplicationType>Utility</ApplicationType> + <License>FREE</License> + <Status>VERIFIED</Status> + <Maintainer>Michael Larabel</Maintainer> + </PhoronixTestSuite> + <Information> + <Title>7-Zip Compression</Title> + <TimesToRun>3</TimesToRun> + <ResultScale>Average MIPS</ResultScale> + <Proportion>HIB</Proportion> + <Description>The benchmark for 7-Zip provided by p7zip.</Description> + </Information> +</PTSBenchmark> diff --git a/pts/benchmark-profiles/compress-gzip.xml b/pts/benchmark-profiles/compress-gzip.xml index b6985ef..f8c4eac 100644 --- a/pts/benchmark-profiles/compress-gzip.xml +++ b/pts/benchmark-profiles/compress-gzip.xml @@ -8,7 +8,7 @@ <Maintainer>Michael Larabel</Maintainer> </PhoronixTestSuite> <Information> - <Title>Time Gzip Compression</Title> + <Title>Timed Gzip Compression</Title> <TimesToRun>5</TimesToRun> <ResultScale>Seconds</ResultScale> <Proportion>LIB</Proportion> diff --git a/pts/benchmark-resources/compress-7zip/downloads.xml b/pts/benchmark-resources/compress-7zip/downloads.xml new file mode 100644 index 0000000..3243308 --- /dev/null +++ b/pts/benchmark-resources/compress-7zip/downloads.xml @@ -0,0 +1,8 @@ +<PhoronixTestSuite> + <Downloads> + <Package> + <URL>http://internap.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.57_src_all.tar.bz2</URL> + <MD5>773f78d8b297eb858626667d4dfa93c7</MD5> + </Package> + </Downloads> +</PhoronixTestSuite> diff --git a/pts/benchmark-resources/compress-7zip/install.sh b/pts/benchmark-resources/compress-7zip/install.sh new file mode 100644 index 0000000..809acc9 --- /dev/null +++ b/pts/benchmark-resources/compress-7zip/install.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +cd $1 + +tar -xjf p7zip_4.57_src_all.tar.bz2 +cd p7zip_4.57/ +make -j $NUM_CPU_JOBS +cd .. + +echo "#!/bin/sh +./p7zip_4.57/bin/7za b" > compress-7zip +chmod +x compress-7zip diff --git a/pts/benchmark-resources/compress-7zip/parse-results.php b/pts/benchmark-resources/compress-7zip/parse-results.php new file mode 100644 index 0000000..e8bad66 --- /dev/null +++ b/pts/benchmark-resources/compress-7zip/parse-results.php @@ -0,0 +1,14 @@ +<?php + +$BENCHMARK_RESULTS = substr($argv[1], strpos($argv[1], "Avr:")); +$BENCHMARK_RESULTS = substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")); +$array = explode(" ", $BENCHMARK_RESULTS); +$array2 = array(); + +foreach($array as $value) + if(!empty($value)) + array_push($array2, $value); + +if(!empty($array2[3])) + echo $array2[3]; +?> |
