Skip to content

Instantly share code, notes, and snippets.

View DanielLidstromTicket's full-sized avatar
👋

Daniel Lidström DanielLidstromTicket

👋
View GitHub Profile
@DayoOliyide
DayoOliyide / order-query.lua
Last active February 27, 2020 07:07
Generate dynamic wrk/wrk2 requests
--[[
This is an example of a wrk/wrk2 script to dynamically generate a range of GET requests for load testing.
you can run it by tying something similar to the following
./wrk -t15 -c 15 -d 600s -R1 -s order-query.lua http://localhost:8080
NOTE: Noticed that the requests are dynamically generated once, given to all the threads
i.e you see request-a t times, then request-b t times.
Ideally i'd like each thread to send a dynamically generated request for each request,
What I see now is the group of threads getting a dynamically generated request.