summaryrefslogtreecommitdiffstats
path: root/pts
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-24 09:53:27 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-24 09:53:27 -0400
commite5c547d422907120f090898eb6e6c5e107563397 (patch)
tree4a695e6a863f9c8835e57d53a24f71b452d49dbb /pts
parent5cf04549e2a37c212101e80726f3134edd469fa6 (diff)
downloadphoronix-test-suite-upstream-e5c547d422907120f090898eb6e6c5e107563397.tar.gz
phoronix-test-suite-upstream-e5c547d422907120f090898eb6e6c5e107563397.tar.xz
phoronix-test-suite-upstream-e5c547d422907120f090898eb6e6c5e107563397.zip
pts: Add fhourstones test profile that does advanced Connect 4 game
solving
Diffstat (limited to 'pts')
-rw-r--r--pts/test-profiles/fhourstones.xml24
-rw-r--r--pts/test-resources/fhourstones/downloads.xml8
-rw-r--r--pts/test-resources/fhourstones/install.sh8
-rw-r--r--pts/test-resources/fhourstones/parse-results.php6
4 files changed, 46 insertions, 0 deletions
diff --git a/pts/test-profiles/fhourstones.xml b/pts/test-profiles/fhourstones.xml
new file mode 100644
index 0000000..9837ee6
--- /dev/null
+++ b/pts/test-profiles/fhourstones.xml
@@ -0,0 +1,24 @@
+<PhoronixTestSuite>
+ <TestProfile>
+ <Version>1.0.0</Version>
+ <TestType>Processor</TestType>
+ <SoftwareType>Utility</SoftwareType>
+ <License>FREE</License>
+ <Status>VERIFIED</Status>
+ <Maintainer>Michael Larabel</Maintainer>
+ <DownloadSize>0.1</DownloadSize>
+ <EnvironmentSize>0.1</EnvironmentSize>
+ <ProjectURL>http://homepages.cwi.nl/~tromp/c4/fhour.html</ProjectURL>
+ </TestProfile>
+ <TestInformation>
+ <Title>Fhourstones</Title>
+ <Version>3.1</Version>
+ <SubTitle>Complex Connect-4 Solving</SubTitle>
+ <TimesToRun>3</TimesToRun>
+ <Executable>fhourstones-benchmark</Executable>
+ <ResultScale>Kpos / sec</ResultScale>
+ <Proportion>HIB</Proportion>
+ <Description>This integer benchmark solves positions in the game of connect-4, as played on a vertical 7x6 board. By default, it uses a 64Mb transposition table with the twobig replacement strategy. Positions are represented as 64-bit bitboards, and the hash function is computed using a single 64-bit modulo operation, giving 64-bit machines a slight edge. The alpha-beta searcher sorts moves dynamically based on the history heuristic.</Description>
+ <ExternalDependencies>build-utilities</ExternalDependencies>
+ </TestInformation>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/fhourstones/downloads.xml b/pts/test-resources/fhourstones/downloads.xml
new file mode 100644
index 0000000..0203af5
--- /dev/null
+++ b/pts/test-resources/fhourstones/downloads.xml
@@ -0,0 +1,8 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://homepages.cwi.nl/~tromp/c4/Fhourstones.tar.gz</URL>
+ <MD5>020cc5476aba44e4abf343e63fd47fca</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/fhourstones/install.sh b/pts/test-resources/fhourstones/install.sh
new file mode 100644
index 0000000..1409f82
--- /dev/null
+++ b/pts/test-resources/fhourstones/install.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+tar -xvf Fhourstones.tar.gz
+make -j $NUM_CPU_JOBS
+
+echo "#!/bin/sh
+./SearchGame < inputs 2>&1" > fhourstones-benchmark
+chmod +x fhourstones-benchmark
diff --git a/pts/test-resources/fhourstones/parse-results.php b/pts/test-resources/fhourstones/parse-results.php
new file mode 100644
index 0000000..8d6f8f6
--- /dev/null
+++ b/pts/test-resources/fhourstones/parse-results.php
@@ -0,0 +1,6 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], 0, strrpos($argv[1], "Kpos/sec"));
+echo trim(substr($BENCHMARK_RESULTS, strrpos($BENCHMARK_RESULTS, "msec =") + 6));
+
+?>