public function finish($outputStat = true)
    {
        if ($outputStat === true) {
            $this->output->writeln('');
            $this->output->writeln(sprintf('<info>Job finished in %.2f s</info>', microtime(true) - $this->start));
            $this->output->writeln(sprintf('<info>Memory usage: %.2f MB</info>', memory_get_peak_usage() >> 20));
        } else {
            $end = microtime(true);

            return [
                'start' => $this->start,
                'finish' => $end,
                'duration' => $end - $this->start,
                'memory_peak' => memory_get_peak_usage() >> 20,
            ];
        }
    }