leeyiw / wrk-gor

A Lua script to let wrk use data recorded by goreplay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrk-gor

A wrk's Lua extension, which let wrk uses goreplay's data file (.gor)

Usage

  1. Download wrk-gor.lua to where you run the wrk.
  2. Prepare goreplay's data file, checkout this document: Saving and Replaying from file. For example, we have requests.gor in current directory.
  3. Run wrk with the following arguments: wrk -s wrk-gor.lua http://127.0.0.1:8080/ -- --gor requests.gor. Then wrk will perform 10 seconds' benchmark to 127.0.0.1:8080, the HTTP requests will be generated using requests.gor by wrk-gor.lua.

About

A Lua script to let wrk use data recorded by goreplay

License:Apache License 2.0


Languages

Language:Lua 100.0%