2025-03-14 21:59:59 -06:00
|
|
|
# wrk
|
|
|
|
|
|
|
|
|
|
> HTTP 벤치마킹 도구.
|
2025-12-16 10:20:31 -07:00
|
|
|
> 더 많은 정보: <https://github.com/wg/wrk#basic-usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- `12`개의 스레드를 사용하고 `400`개의 HTTP 연결을 열어 `30`초 동안 벤치마크 실행:
|
|
|
|
|
|
2026-08-06 22:19:46 -06:00
|
|
|
`wrk {{[-t|--threads]}} {{12}} {{[-c|--connections]}} {{400}} {{[-d|--duration]}} {{30s}} "{{http://127.0.0.1:8080/index.html}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 사용자 지정 헤더를 사용하여 벤치마크 실행:
|
|
|
|
|
|
2026-08-06 22:19:46 -06:00
|
|
|
`wrk {{[-t|--threads]}} {{2}} {{[-c|--connections]}} {{5}} {{[-d|--duration]}} {{5s}} {{[-H|--header]}} "{{Host: example.com}}" "{{http://example.com/index.html}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 요청 타임아웃을 `2`초로 설정하여 벤치마크 실행:
|
|
|
|
|
|
2026-08-06 22:19:46 -06:00
|
|
|
`wrk {{[-t|--threads]}} {{2}} {{[-c|--connections]}} {{5}} {{[-d|--duration]}} {{5s}} --timeout {{2s}} "{{http://example.com/index.html}}"`
|