diff --git a/src/Services/Runner.php b/src/Services/Runner.php index ac5c066..4f5134e 100644 --- a/src/Services/Runner.php +++ b/src/Services/Runner.php @@ -7,6 +7,18 @@ class Runner { public function call(callable $callback): float + { + $this->clean(); + + return $this->run($callback); + } + + protected function clean(): void + { + gc_collect_cycles(); + } + + protected function run(callable $callback): float { $startAt = hrtime(true);