nugawiki

./categories/server

ApacheBench ab

업데이트 2026-07-21 조회수

가벼운 CLI 웹 벤치. 정적·단순 API에 적합. HTML/CSS/이미지 해석 없음. HTTP/1.0. KeepAlive는 동적(Content-Length 없는) 페이지에서 제한적.

ab -n 10 -c 3 http://example.com/
ab -n 100 -c 10 -g result.plot http://example.com/index.html

-n 총 요청, -c 동시, -g gnuplot 데이터.

주요 결과: Requests per second, Time per request, Failed requests.

gnuplot

brew install gnuplot
# result.plot 컬럼: starttime, seconds, ctime, dtime, ttime, wait
gnuplot script.plot   # ttime(5열) 플롯 → result.png

./comments