run-custom.bat 766 B

123456789101112131415161718192021222324252627
  1. echo "run-push.bat"
  2. set EXE_PATH=%1
  3. set SRC_PATH=%2\\..
  4. echo %EXE_PATH% %SRC_PATH%
  5. taskkill /im CustomServer.exe /t /f
  6. timeout /T 1
  7. echo "start server: %EXE_PATH%\\CustomServer.exe --config=%SRC_PATH%\\examples\\CustomDemo\\CustomServer\\config.conf "
  8. start /b %EXE_PATH%\\CustomServer.exe --config=%SRC_PATH%\\examples\\CustomDemo\\CustomServer\\config.conf
  9. timeout /T 1
  10. ::-------------------------------------------------------------------------------------------------------
  11. echo "client: %EXE_PATH%\\CustomClient.exe"
  12. %EXE_PATH%\\CustomClient.exe --count=10000 --thread=2 --call=sync --netthread=2 --buffersize=100
  13. %EXE_PATH%\\CustomClient.exe --count=10000 --thread=2 --call=async --netthread=2 --buffersize=100
  14. taskkill /im CustomServer.exe /t /f