자택경비대

'unix'에 해당되는 글 1건

  1. Unix/Linux 명령어 옵션 벤치마크 하는방법

Unix/Linux 명령어 옵션 벤치마크 하는방법

Programming

time 명령어를 사용하여, 인자로 전달된 명령어의 실행 시간, CPU 사용량 등을 측정하여 보여주도록 할 수 있다.


make 명령어의 옵션 측정 예

# time make
make  16.50s user 1.73s system 98% cpu 18.561 total
make -j4  19.80s user 2.07s system 329% cpu 6.634 total
make -j8  23.94s user 2.35s system 472% cpu 5.568 total