Remove benchmark
This commit is contained in:
@ -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) {}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user