diff --git a/src/Services/Runner.php b/src/Services/Runner.php index da88185..240d8d8 100644 --- a/src/Services/Runner.php +++ b/src/Services/Runner.php @@ -26,7 +26,7 @@ protected function run(callable $callback): array $callback(); $time = $this->diff(hrtime(true), $startAt); - $ram = memory_get_usage() - $ramFrom; + $ram = memory_get_peak_usage() - $ramFrom; return [$time, $ram]; }