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/gtkperf.xml b/pts/benchmark-profiles/gtkperf.xml
new file mode 100644
index 0000000..a6ecd04
--- /dev/null
+++ b/pts/benchmark-profiles/gtkperf.xml
@@ -0,0 +1,26 @@
+<PTSBenchmark>
+ <PhoronixTestSuite>
+ <Version>0.2</Version>
+ <BenchmarkType>Graphics</BenchmarkType>
+ <ApplicationType>Utility</ApplicationType>
+ <License>FREE</License>
+ <Status>VERIFIED</Status>
+ <Maintainer>Michael Larabel</Maintainer>
+ </PhoronixTestSuite>
+ <Information>
+ <Title>GtkPerf</Title>
+ <Version>0.40</Version>
+ <Identifier>gtkperf</Identifier>
+ <Executable>gtkperf</Executable>
+ <ExternalDependencies>gtk-development</ExternalDependencies>
+ <TimesToRun>1</TimesToRun>
+ <ResultScale>FPS</ResultScale>
+ <Description>This test calculates the average frame-rate in some GTK tests.</Description>
+ <Notes> </Notes>
+ </Information>
+ <Settings>
+ <Default>
+ <Arguments>-a -c 1000</Arguments>
+ </Default>
+ </Settings>
+</PTSBenchmark>
diff --git a/pts/benchmark-resources/gtkperf/install.sh b/pts/benchmark-resources/gtkperf/install.sh
new file mode 100644
index 0000000..ca208fb
--- /dev/null
+++ b/pts/benchmark-resources/gtkperf/install.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+cd $1
+
+if [ ! -f gtkperf_0.40.tar.gz ]
+ then
+ wget http://internap.dl.sourceforge.net/sourceforge/gtkperf/gtkperf_0.40.tar.gz -O gtkperf_0.40.tar.gz
+fi
+
+THIS_DIR=$(pwd)
+mkdir $THIS_DIR/gtkperf_env
+
+tar -xvf gtkperf_0.40.tar.gz
+cd gtkperf/
+./configure --prefix=$THIS_DIR/gtkperf_env
+make -j $NUM_CPU_JOBS
+make install
+cd ..
+rm -rf gtkperf/
+
+echo "#!/bin/sh
+./gtkperf_env/bin/gtkperf \$@" > gtkperf
+chmod +x gtkperf
diff --git a/pts/benchmark-resources/gtkperf/parse-results.php b/pts/benchmark-resources/gtkperf/parse-results.php
new file mode 100644
index 0000000..3320f72
--- /dev/null
+++ b/pts/benchmark-resources/gtkperf/parse-results.php
@@ -0,0 +1,8 @@
+<?php
+
+//$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "WAV To MP3 Encode Time:") + 23);
+//echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "Seconds")));
+
+echo $BENCHMARK_RESULTS;
+
+
Copyright © 2010 by Phoronix Media