function NotifyResult() { $mean = BenchmarkSuite::GeometricMeanTime($this->results); $score = $this->reference[0] / $mean; array_push(BenchmarkSuite::$scores, $score); if ($this->runner['NotifyResult'] != null) { $formatted = BenchmarkSuite::FormatScore(100 * $score); $this->runner['NotifyResult']($this->name, $formatted); } if (count($this->reference) == 2) { $meanLatency = BenchmarkSuite::GeometricMeanLatency($this->results); if ($meanLatency != 0) { $scoreLatency = $this->reference[1] / $meanLatency; array_push(BenchmarkSuite::$scores, $scoreLatency); if ($this->runner['NotifyResult']) { $formattedLatency = BenchmarkSuite::FormatScore(100 * $scoreLatency); $this->runner['NotifyResult']($this->name . "Latency", $formattedLatency); } } } }