hurl/bin/test/bench.sh

20 lines
401 B
Bash
Raw Normal View History

2022-12-14 11:28:25 +03:00
#!/bin/bash
set -Eeuo pipefail
2022-10-04 16:31:38 +03:00
echo "----- Bench suite -----"
# hurl infos
2023-04-05 12:07:50 +03:00
command -v hurl || (echo "ERROR - hurl not found" ; exit 1)
command -v hurlfmt || (echo "ERROR - hurlfmt not found" ; exit 1)
2022-10-04 16:31:38 +03:00
hurl --version
hurlfmt --version
# bench
2023-06-13 12:27:02 +03:00
python3 -m pip install --requirement bin/requirements-frozen.txt
2022-10-04 16:31:38 +03:00
cd bench
2023-04-05 12:07:50 +03:00
python3 server.py > server.log 2>&1 &
2022-10-04 16:31:38 +03:00
sleep 5
netstat -anpe | grep 8000
2022-07-30 05:49:56 +03:00
./run.sh