Remove benchmark

This commit is contained in:
2023-10-19 22:01:00 -03:00
parent e536f0f8f3
commit 54ac535a49

View File

@ -58,11 +58,7 @@ class Cuotas
} catch (EmptyRedis) { } catch (EmptyRedis) {
$output = []; $output = [];
try { try {
$benchmark = [
'start' => microtime(true)
];
$cuotas = $cuotaRepository->fetchDatosPorVencer(); $cuotas = $cuotaRepository->fetchDatosPorVencer();
$benchmark['cuotas'] = microtime(true) - $benchmark['start'];
foreach ($cuotas as $row) { foreach ($cuotas as $row) {
$fecha = $row['Fecha']; $fecha = $row['Fecha'];
$date = new DateTimeImmutable($fecha); $date = new DateTimeImmutable($fecha);
@ -86,8 +82,6 @@ class Cuotas
}); });
$output[$key] = $day; $output[$key] = $day;
} }
$benchmark['run'] = microtime(true) - $benchmark['start'];
error_log(var_export($benchmark,true));
$this->saveRedis($redisService, $redisKey, $output); $this->saveRedis($redisService, $redisKey, $output);
} catch (EmptyResult) {} } catch (EmptyResult) {}
} }