mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2025-01-05 17:42:24 +08:00
31 lines
635 B
Batchfile
31 lines
635 B
Batchfile
|
|
echo "run-auth.bat"
|
|
|
|
set EXE_PATH=%1
|
|
set SRC_PATH=%2\\..
|
|
|
|
echo %EXE_PATH% %SRC_PATH%
|
|
|
|
taskkill /im UdpServer.exe /t /f
|
|
|
|
timeout /T 1
|
|
|
|
echo "start server: %EXE_PATH%/UdpServer.exe --config=%SRC_PATH%/examples/UdpDemo/Server/config.conf"
|
|
|
|
start /b %EXE_PATH%\\UdpServer.exe --config=%SRC_PATH%\\examples\\UdpDemo\\Server\\config.conf
|
|
|
|
timeout /T 3
|
|
|
|
echo "client: ${EXE_PATH}/UdpClient.exe"
|
|
|
|
%EXE_PATH%\\UdpClient.exe --count=10000 --thread=2 --call=sync --buffersize=1000 --netthread=1
|
|
%EXE_PATH%\\UdpClient.exe --count=10000 --thread=2 --call=async --buffersize=1000 --netthread=1
|
|
|
|
timeout /T 1
|
|
|
|
taskkill /im UdpServer.exe /t /f
|
|
|
|
|
|
|
|
|