wrk - a HTTP benchmarking tool

2023. 6. 5. 15:43·Linux

소개

  • wrk는 단일 멀티코어 CPU에서 실행할 때 상당한 부하를 발생시킬 수 있는 최신 HTTP 벤치마킹 도구입니다. 
  • 멀티스레드 설계와 확장 가능한 이벤트 알림 시스템(예: epoll 및 kqueue)이 결합되어 있습니다.
  • 선택 사항인 LuaJIT 스크립트는 HTTP 요청 생성, 응답 처리 및 사용자 지정 보고를 수행할 수 있습니다. 
  • 자세한 내용은 스크립팅에서 확인할 수 있으며 몇 가지 예제는 `scripts/` 에 있습니다.
  • https://github.com/wg/wrk
 

GitHub - wg/wrk: Modern HTTP benchmarking tool

Modern HTTP benchmarking tool. Contribute to wg/wrk development by creating an account on GitHub.

github.com

기본 사용법

# 30초 동안 12 쓰레드, 400 커넥션으로 벤치마킹 실행
wrk -t12 -c400 -d30s http://127.0.0.1:8080/index.html

# lua 스크립트를 이용한 실행
wrk -s my-script.lua http://127.0.0.1:8080/index.html

# 실행 결과
Running 30s test @ http://127.0.0.1:8080/index.html
  12 threads and 400 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   635.91us    0.89ms  12.92ms   93.69%
    Req/Sec    56.20k     8.07k   62.00k    86.54%
  22464657 requests in 30.00s, 17.76GB read
Requests/sec: 748868.53
Transfer/sec:    606.33MB

 

커맨드라인 옵션

-c, --connections: total number of HTTP connections to keep open with
                   each thread handling N = connections/threads

-d, --duration:    duration of the test, e.g. 2s, 2m, 2h

-t, --threads:     total number of threads to use

-s, --script:      LuaJIT script, see SCRIPTING

-H, --header:      HTTP header to add to request, e.g. "User-Agent: wrk"

    --latency:     print detailed latency statistics

    --timeout:     record a timeout if a response is not received within
                   this amount of time.

'Linux' 카테고리의 다른 글

Getting Started With Pacman Commands in Arch-based Linux  (0) 2023.09.06
How to install dynamodb local  (0) 2023.06.27
VirtualBox 에서 우분투 7.10 server 설치시 "PANIC: CPU too old for this kernel" 메시지  (3) 2008.01.14
VirtualBox - Windows의 네트워크 브리지를 사용한 네트워크 구성(NAT 사용)  (0) 2007.12.17
리눅스 압축툴 Unpack  (1) 2007.07.21
'Linux' 카테고리의 다른 글
  • Getting Started With Pacman Commands in Arch-based Linux
  • How to install dynamodb local
  • VirtualBox 에서 우분투 7.10 server 설치시 "PANIC: CPU too old for this kernel" 메시지
  • VirtualBox - Windows의 네트워크 브리지를 사용한 네트워크 구성(NAT 사용)
somoly
somoly
About me.
  • somoly
    somoly.tistory.com
    somoly
  • 전체
    오늘
    어제
    • 전체 (55)
      • SpringBoot (8)
      • Kotlin (5)
      • Javascript (4)
      • 백엔드 (6)
      • Linux (25)
      • Windows (1)
      • IT (2)
      • FF14 (1)
      • 애니 (1)
      • Figure (1)
      • 회사생활 (1)
  • 블로그 메뉴

    • HOME
    • TAGS
    • MEDIA
    • LOCATION
    • GUESTBOOK
    • ADMIN
    • WRITE
  • 링크

    • [FF14] 5.0 (71-80) 제작 레벨링 매크로
    • [FF14] 갈론드벨
    • [FF14] FFLogs
    • [FF14] Ariyala 장비 시뮬레이터
    • [FF14] 낚시 도우미
    • [FF14] 인테리어 정보
    • [FF14] 의상 코디 정보
  • 공지사항

  • 인기 글

  • 태그

    versioncomapre
    P2P
    accesskey
    종료
    HTTP
    우분투
    부팅
    linux
    83인치
    77인치
    최후의 재림
    tabulator
    Kotlin
    VirtualBox
    리눅스
    jvminline
    ubuntu
    Spring
    utf-8
    bcmod
    javascript
    동영상
    dynamodb local
    피규어
    30일전
    설치
    string methods
    exchage method
    interactive table
    springboot
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
somoly
wrk - a HTTP benchmarking tool
상단으로

티스토리툴바