Complex expressions

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:501array_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:781$variant $suite->findVariant($variant->getSubject( )->getBenchmark( )->getClass( ), $variant->getSubject( )->getName( ), $variant->getParameterSet( )->getName( ))
/lib/Model/Variant.php:2291$deviation 100 $this->stats->getMean( ) * (($timeResult->getRevTime($iteration->getVariant( )->getRevolutions( ))) - $this->stats->getMean( ))
/lib/Report/Generator/TableGenerator.php:5971$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:1071$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:941$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:1261$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:771$suite = new Suite($suiteEl->getAttribute('tag'), new \DateTime($suiteEl->getAttribute('date')), $suiteEl->getAttribute('config-path'), [ ], [ ], $suiteEl->getAttribute('uuid'))
/lib/Assertion/MessageFormatter/NodeMessageFormatter.php:821$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:401$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:2181$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:951$key sprintf('%s-%s-%s-%s'$this->years->key( ), $this->months->key( ), $this->days->key( ), $this->entries->key( ))
/lib/Model/SuiteCollection.php:781if(!$variant $suite->findVariant($variant->getSubject( )->getBenchmark( )->getClass( ), $variant->getSubject( )->getName( ), $variant->getParameterSet( )->getName( ))) { /**/ }