diff options
Diffstat (limited to 'pts')
-rw-r--r-- | pts/benchmark-profiles/scimark2.xml | 19 | ||||
-rw-r--r-- | pts/benchmark-resources/scimark2/install.sh | 20 | ||||
-rw-r--r-- | pts/benchmark-resources/scimark2/parse-results.php | 6 |
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"))); + +?> |