summaryrefslogtreecommitdiffstats
path: root/pts
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-04-20 20:02:27 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-04-20 20:02:27 -0400
commitc472602ebaa150367fa6aa3b80cf6b336077f2cc (patch)
tree82c82c91cf7d50ffd810ca5a3c4a9f6f98a47588 /pts
parent38b9a063df1e52fe7d21896d991a6c92a4e6e9ae (diff)
downloadphoronix-test-suite-upstream-c472602ebaa150367fa6aa3b80cf6b336077f2cc.tar.gz
phoronix-test-suite-upstream-c472602ebaa150367fa6aa3b80cf6b336077f2cc.tar.xz
phoronix-test-suite-upstream-c472602ebaa150367fa6aa3b80cf6b336077f2cc.zip
Add SciMark 2.0 benchmark (scimark2) profile
Diffstat (limited to 'pts')
-rw-r--r--pts/benchmark-profiles/scimark2.xml19
-rw-r--r--pts/benchmark-resources/scimark2/install.sh20
-rw-r--r--pts/benchmark-resources/scimark2/parse-results.php6
3 files changed, 45 insertions, 0 deletions
diff --git a/pts/benchmark-profiles/scimark2.xml b/pts/benchmark-profiles/scimark2.xml
new file mode 100644
index 0000000..c50b54b
--- /dev/null
+++ b/pts/benchmark-profiles/scimark2.xml
@@ -0,0 +1,19 @@
+<PTSBenchmark>
+ <PhoronixTestSuite>
+ <Version>0.3</Version>
+ <BenchmarkType>Processor</BenchmarkType>
+ <ApplicationType>Utility</ApplicationType>
+ <License>FREE</License>
+ <Status>VERIFIED</Status>
+ <Maintainer>Michael Larabel</Maintainer>
+ </PhoronixTestSuite>
+ <Information>
+ <Title>SciMark</Title>
+ <Version>2.0</Version>
+ <ExternalDependencies>java</ExternalDependencies>
+ <TimesToRun>4</TimesToRun>
+ <ResultScale>Mflops</ResultScale>
+ <Proportion>HIB</Proportion>
+ <Description>This test runs the ANSI C version of SciMark 2.0, which is a benchmark for scientific and numerical computing developed by programmers at the National Institute of Standards and Technology. This benchmark is made up of Fast Foruier Transform, Jacobi Successive Over-relaxation, Monte Carlo, Sparse Matrix Multiply, and dense LU matrix factorization benchmarks.</Description>
+ </Information>
+</PTSBenchmark>
diff --git a/pts/benchmark-resources/scimark2/install.sh b/pts/benchmark-resources/scimark2/install.sh
new file mode 100644
index 0000000..660f4b8
--- /dev/null
+++ b/pts/benchmark-resources/scimark2/install.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+cd $1
+
+if [ ! -f scimark2_1c.zip ]
+
+ then
+ wget http://math.nist.gov/scimark2/scimark2_1c.zip -O scimark2_1c.zip
+fi
+
+unzip -o scimark2_1c.zip -d scimark2_files
+cd scimark2_files/
+g++ -o scimark2 -O *.c
+cd ..
+
+echo "#!/bin/sh
+cd scimark2_files/
+
+./scimark2 -large" > scimark2
+chmod +x scimark2
diff --git a/pts/benchmark-resources/scimark2/parse-results.php b/pts/benchmark-resources/scimark2/parse-results.php
new file mode 100644
index 0000000..8187b13
--- /dev/null
+++ b/pts/benchmark-resources/scimark2/parse-results.php
@@ -0,0 +1,6 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], strpos($argv[1], "Composite Score:") + 16);
+echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")));
+
+?>