//add one thread will seriously impact IO throughput when doing performance benchmark, this is because the business logic is very simple (send original messages back,
//or just add up total message size), under this scenario, just one service thread without receiving buffer will obtain the best IO throughput.
//the server has such behavior too.
#endif
sp.start_service(thread_num);
while(sp.is_running())
...
...
@@ -500,7 +496,7 @@ int main(int argc, const char* argv[])
puts("performance test begin, this application will have no response during the test!");
for(inti=0;i<repeat_times;++i)
{
printf("thie is the %d / %d test.\n",i+1,repeat_times);
printf("this is the %d / %d test.\n",i+1,repeat_times);
//add one thread will seriously impact IO throughput when doing performance benchmark, this is because the business logic is very simple (send original messages back,
//or just add up total message size), under this scenario, just one service thread without receiving buffer will obtain the best IO throughput.
//the server has such behavior too.
#endif
for(size_ti=0;i<link_num;++i)
client.add_client(port,ip);
...
...
@@ -203,7 +199,7 @@ int main(int argc, const char* argv[])