Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.
Literal arrays are omitted.
File | Count | Expression |
---|---|---|
/lib/Assertion/AssertionProcessor.php:50 | 1 | array_merge($variant->getStats( )->getStats( ), ['mem_real' => Statistics::mean($variant->getMetricValues(MemoryResult::class, 'real')), 'mem_final' => Statistics::mean($variant->getMetricValues(MemoryResult::class, 'final')), 'mem_peak' => Statistics::mean($variant->getMetricValues(MemoryResult::class, 'peak')), ]) |
/lib/Model/SuiteCollection.php:78 | 1 | $variant = $suite->findVariant($variant->getSubject( )->getBenchmark( )->getClass( ), $variant->getSubject( )->getName( ), $variant->getParameterSet( )->getName( )) |
/lib/Model/Variant.php:229 | 1 | $deviation = 100 / $this->stats->getMean( ) * (($timeResult->getRevTime($iteration->getVariant( )->getRevolutions( ))) - $this->stats->getMean( )) |
/lib/Report/Generator/TableGenerator.php:597 | 1 | $row = Row::fromMap(['suite' => $suite->getUuid( ), 'tag' => $suite->getTag( ), 'date' => $suite->getDate( )->format('Y-m-d'), 'stime' => $suite->getDate( )->format('H:i:s'), 'benchmark' => $this->getClassShortName($benchmark->getClass( )), 'benchmark_full' => $benchmark->getClass( ), 'subject' => $subject->getName( ), 'groups' => implode(',', $subject->getGroups( )), 'set' => $variant->getParameterSet( )->getName( ), 'params' => json_encode($variant->getParameterSet( )->getArrayCopy( ), $paramJsonFlags), 'revs' => $variant->getRevolutions( ), 'its' => count($variant->getIterations( )), 'mem_real' => Statistics::mean($variant->getMetricValues(MemoryResult::class, 'real')), 'mem_final' => Statistics::mean($variant->getMetricValues(MemoryResult::class, 'final')), 'mem_peak' => Statistics::mean($variant->getMetricValues(MemoryResult::class, 'peak')), ]) |
/lib/Console/Command/Handler/RunnerHandler.php:107 | 1 | $default = RunnerConfig::create( )->withRevolutions($input->getOption(self::OPT_REVS))->withParameters($this->getParameters($input->getOption(self::OPT_PARAMETERS)))->withExecutor($input->getOption(self::OPT_EXECUTOR))->withStopOnError($input->getOption(self::OPT_STOP_ON_ERROR)) |
/lib/Console/Command/LogCommand.php:94 | 1 | $lines[] = sprintf('Summary: (best [mean] worst) = %s [%s] %s (%s)', number_format($this->timeUnit->toDestUnit($entry->getMinTime( )), 3), number_format($this->timeUnit->toDestUnit($entry->getMeanTime( )), 3), number_format($this->timeUnit->toDestUnit($entry->getMaxTime( )), 3), $this->timeUnit->getDestSuffix( )) |
/lib/Console/Command/RunCommand.php:126 | 1 | $config = RunnerConfig::create( )->withTag((string) $input->getOption(self::OPT_TAG))->withRetryThreshold($retryThreshold !== null ? (float) $retryThreshold : null)->withSleep($sleep !== null ? (int) $sleep : null)->withIterations($input->getOption(self::OPT_ITERATIONS))->withWarmup($input->getOption(self::OPT_WARMUP))->withBaselines($baselines)->withAssertions($input->getOption('assert')) |
/lib/Serializer/XmlDecoder.php:77 | 1 | $suite = new Suite($suiteEl->getAttribute('tag'), new \DateTime($suiteEl->getAttribute('date')), $suiteEl->getAttribute('config-path'), [ ], [ ], $suiteEl->getAttribute('uuid')) |
/lib/Assertion/MessageFormatter/NodeMessageFormatter.php:82 | 1 | $message = sprintf('%s %s %s ± %s', $this->formatValueWithNormalizedUnit($value1, $value2, $node->tolerance( )), $node->operator( ), $this->formatValueWithNormalizedUnit($value2, $value1, $node->tolerance( )), $this->formatValueWithNormalizedUnit($node->tolerance( ), $value1, $value2)) |
/lib/Assertion/AssertionProcessor.php:40 | 1 | $result = $this->evaluator->createWithArgs(['variant' => $variantData, 'baseline' => $variant->getBaseline( ) ? $this->buildVariantData($variant->getBaseline( )) : $variantData, ])->evaluate($this->parser->parse($assertion)) |
/lib/Storage/Driver/Xml/HistoryIterator.php:218 | 1 | $entry = new HistoryEntry($suite->getUuid( ), $suite->getDate( ), $suite->getTag( ), $vcsBranch, $summary->getNbSubjects( ), $summary->getNbIterations( ), $summary->getNbRevolutions( ), $summary->getMinTime( ), $summary->getMaxTime( ), $summary->getMeanTime( ), $summary->getMeanRelStDev( ), $summary->getTotalTime( )) |
/lib/Storage/Driver/Xml/HistoryIterator.php:95 | 1 | $key = sprintf('%s-%s-%s-%s', $this->years->key( ), $this->months->key( ), $this->days->key( ), $this->entries->key( )) |
/lib/Model/SuiteCollection.php:78 | 1 | if(!$variant = $suite->findVariant($variant->getSubject( )->getBenchmark( )->getClass( ), $variant->getSubject( )->getName( ), $variant->getParameterSet( )->getName( ))) { /**/ } |