Wrk: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
sudo make clean | sudo make clean | ||
wrk --help | wrk --help | ||
</source> | |||
==Playground== | |||
<source lang="bash"> | |||
cat <<'EOF' > ~/Documents/wrk-playground/test-urlencoded-data.lua | |||
wrk.method = "POST" | |||
-- post form urlencoded data | |||
wrk.body = "width=2&height=2" | |||
wrk.headers['Content-Type'] = "application/x-www-form-urlencoded" | |||
EOF | |||
</source> | </source> | ||
Revision as of 02:54, 15 January 2024
# macos
brew install wrk
wrk --help
# debian / ubuntu
sudo apt install build-essential libssl-dev git -y
git clone https://github.com/wg/wrk.git && cd wrk
sudo make && sudo cp wrk /usr/local/bin
ls -lah /usr/local/bin|grep wrk
sudo make clean
wrk --help
Playground
cat <<'EOF' > ~/Documents/wrk-playground/test-urlencoded-data.lua
wrk.method = "POST"
-- post form urlencoded data
wrk.body = "width=2&height=2"
wrk.headers['Content-Type'] = "application/x-www-form-urlencoded"
EOF
References
| ||