From 9ab8c3f8d691adad8a3eacb0fafe24cb6776b344 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 9 Jan 2018 18:17:15 +0100 Subject: [PATCH] Try to scrap MotionMark results differently; --- slave/benchmarks_remote.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/slave/benchmarks_remote.py b/slave/benchmarks_remote.py index 9906d85..bc5c469 100644 --- a/slave/benchmarks_remote.py +++ b/slave/benchmarks_remote.py @@ -513,7 +513,7 @@ class WasmMisc(Benchmark): class MotionMark(Benchmark): def __init__(self): - Benchmark.__init__(self, timeout=10) + Benchmark.__init__(self, timeout=12) @staticmethod def translate_path(path): @@ -551,14 +551,14 @@ class MotionMark(Benchmark): showResults: function() ''', ''' showResults: function() { - var results = benchmarkRunnerClient.results; + var dashboard = benchmarkRunnerClient.results; var scores = {}; - scores['__total__'] = results.score; + scores['__total__'] = dashboard.score; - var subtests = results._results.iterationsResults[0].testsResults.Animometer; + var subtests = dashboard.results[0].testResults.Animometer; for (var name in subtests) { - scores[name] = subtests[name].score; + scores[name] = Math.round(subtests[name].average * 100) / 100; } scores = encodeURIComponent(JSON.stringify(scores));