PhpBench\Progress\Logger\PhpBenchLogger::formatIterationsShortSummary PHP Method

formatIterationsShortSummary() public method

public formatIterationsShortSummary ( Variant $variant )
$variant PhpBench\Model\Variant
    public function formatIterationsShortSummary(Variant $variant)
    {
        $subject = $variant->getSubject();
        $stats = $variant->getStats();
        $timeUnit = $this->timeUnit->resolveDestUnit($variant->getSubject()->getOutputTimeUnit());
        $mode = $this->timeUnit->resolveMode($subject->getOutputMode());
        $precision = $this->timeUnit->resolvePrecision($subject->getOutputTimePrecision());
        return sprintf('[μ Mo]/r: %s %s μRSD/r: %s%%', $this->timeUnit->format($stats->getMean(), $timeUnit, $mode, $precision, false), $this->timeUnit->format($stats->getMode(), $timeUnit, $mode, $precision, false), number_format($stats->getRstdev(), 2));
    }