run-custom.sh 707 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. echo "run-custom.sh"
  3. EXE_PATH=$1
  4. SRC_PATH=$2/..
  5. echo ${EXE_PATH} ${SRC_PATH}
  6. killall -9 CustomServer
  7. sleep 1
  8. echo "start server: ${EXE_PATH}/CustomServer --config=${SRC_PATH}/examples/CustomDemo/CustomServer/config.conf &"
  9. ${EXE_PATH}/CustomServer --config=${SRC_PATH}/examples/CustomDemo/CustomServer/config.conf &
  10. sleep 2
  11. #-------------------------------------------------------------------------------------------------------
  12. echo "client: ${EXE_PATH}/CustomClient"
  13. ${EXE_PATH}/CustomClient --count=10000 --thread=2 --call=sync --netthread=1 --buffersize=100
  14. ${EXE_PATH}/CustomClient --count=10000 --thread=2 --call=async --netthread=1 --buffersize=100
  15. killall -9 CustomServer