hurl/bin/test/bench.sh
2023-06-13 16:36:58 +02:00

20 lines
401 B
Bash
Executable File

#!/bin/bash
set -Eeuo pipefail
echo "----- Bench suite -----"
# hurl infos
command -v hurl || (echo "ERROR - hurl not found" ; exit 1)
command -v hurlfmt || (echo "ERROR - hurlfmt not found" ; exit 1)
hurl --version
hurlfmt --version
# bench
python3 -m pip install --requirement bin/requirements-frozen.txt
cd bench
python3 server.py > server.log 2>&1 &
sleep 5
netstat -anpe | grep 8000
./run.sh