Skip to content

demidovich/wrk-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wrk json

This is a dockerized wrk tool with a shell startup scripts and a lua script. Lua script allows you to describe testing urls and request headers in the json file.

Usage as standard wrk:

./wrk --help

Usage with the requests described in a json file:

./wrk-json -s http://localhost:8080 -f ./test-requests.json -c 1 -d 10 -t 1

test-requests.json

{
    "headers": {
        "X-Custom-Header-1": "test 1",
        "X-Custom-Header-2": "test 2"
    },
    "requests": [
        {
            "path": "/url1",
            "method": "GET"
        },
        {
            "path": "/url2",
            "method": "GET"
        },
        {
            "path": "/url3",
            "body": "content",
            "method": "POST"
        }
    ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published