summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/ppracer/parse-results.php
diff options
context:
space:
mode:
Diffstat (limited to 'pts/test-resources/ppracer/parse-results.php')
-rw-r--r--pts/test-resources/ppracer/parse-results.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/pts/test-resources/ppracer/parse-results.php b/pts/test-resources/ppracer/parse-results.php
new file mode 100644
index 0000000..00241a7
--- /dev/null
+++ b/pts/test-resources/ppracer/parse-results.php
@@ -0,0 +1,5 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "Average FPS:") + 13);
+echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")));
+?>