mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 18:36:30 +02:00
docs: add benchmarking script
This commit is contained in:
parent
88b7766c7d
commit
ede412448a
1 changed files with 16 additions and 0 deletions
16
scripts/vegeta_benchmark.sh
Executable file
16
scripts/vegeta_benchmark.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# see: https://github.com/tsenart/vegeta
|
||||
|
||||
cookie='cookie: _pomerium_proxy=REPLACE_ME'
|
||||
url='GET https://hi.corp.beyondperimeter.com/'
|
||||
rate=100
|
||||
until [ $rate -gt 10001 ]; do
|
||||
echo "${url}" | vegeta attack -header "${cookie}" -name=$rate -rate=$rate -duration=5s >results.$rate.bin
|
||||
let rate+=100
|
||||
sleep 10
|
||||
done
|
||||
|
||||
for filename in results.*; do
|
||||
cat "$filename" | vegeta report
|
||||
cat "$filename" | vegeta report -type="hist[0,50ms,100ms,200ms,300ms,500ms,1000ms]"
|
||||
done
|
Loading…
Add table
Reference in a new issue