for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Stu\Module\Tick;
use Stu\Module\Logging\LoggerUtilInterface;
use Ubench;
abstract class AbstractTickManager
{
abstract protected function getBenchmark(): Ubench;
abstract protected function getLoggerUtil(): LoggerUtilInterface;
protected function logBenchmarkResult(int $entityCount): void
$this->getBenchmark()->end();
$this->getLoggerUtil()->log(sprintf(
'benchmarkResult for %d entities - executionTime: %s, memoryPeakUsage: %s',
$entityCount,
$this->getBenchmark()->getTime(),
$this->getBenchmark()->getMemoryPeak()
));
}