shell_execでも同様の結果となる
composer create-project laravel/laravel example-app
cd example-app
./artisan make:command shell_exec
./artisan command:name
wget https://gist.githubusercontent.com/hellowork-mhlw/03344d342fffa767e6a6ffd7b89a93ed/raw/cnt.c
gcc cnt.c
# 下記からコードをコピペ
# https://qiita.com/foluyucic/items/158f1759a372fed6a1ff
$ time ./artisan command:name sleep 3
real 0m3.114s
user 0m0.086s
sys 0m0.030s
$ time ./artisan command:name ./a.out
500000000500000000
real 0m1.044s
user 0m1.008s
sys 0m0.035s
$ time ./a.out
500000000500000000
real 0m0.914s
user 0m0.912s
sys 0m0.001s
参考