Skip to content

Instantly share code, notes, and snippets.

@lpereira
Created March 9, 2015 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpereira/ba8433bcd69ec8da6536 to your computer and use it in GitHub Desktop.
Save lpereira/ba8433bcd69ec8da6536 to your computer and use it in GitHub Desktop.
Pipeline benchmark
#!/bin/sh
exec wrk -H 'Host: localhost' \
-H 'Accept: text/plain,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7' \
-H 'Connection: keep-alive' \
-d 10 \
-c 1000 \
--timeout 16384 \
-t 4 \
http://127.0.0.1:8080/hello \
-s ./pipelined_get.lua -- 16
init = function(args)
wrk.init(args)
local r = {}
local depth = tonumber(args[1]) or 1
for i=1,depth do
r[i] = wrk.format()
end
req = table.concat(r)
end
request = function()
return req
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment