Skip to content
Snippets Groups Projects
Commit ebd3f04f authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Merge branch 'adjust-concurrent-echos' into 'master'

[ConcurrentNetworkEchoTest] scale work with the available CPUs and log_level

See merge request i4/manycore/emper!262
parents b7b750c7 6afbf1d3
No related branches found
No related tags found
No related merge requests found
......@@ -3,13 +3,16 @@
#include <cstdlib>
#include <iostream>
#include <string>
#include <thread>
#include <vector>
#include "Common.hpp"
#include "CountingPrivateSemaphore.hpp"
#include "Debug.hpp"
#include "Emper.hpp"
#include "Fiber.hpp"
#include "Runtime.hpp"
#include "emper-config.h"
#include "emper.hpp"
#include "fixtures/network.hpp"
#include "io.hpp"
......@@ -21,8 +24,8 @@ auto main(int argc, char* argv[]) -> int {
exit(77);
}
unsigned int client_count = 10;
unsigned int echos = 500;
unsigned int client_count = std::thread::hardware_concurrency() * 4;
unsigned int echos = EMPER_LOG_LEVEL > Info ? 250 : 25000;
std::string port = "4241";
std::string host = "127.0.0.1";
......@@ -40,6 +43,9 @@ auto main(int argc, char* argv[]) -> int {
echos = strtol(argv[2], nullptr, DECIMAL);
}
std::cout << "ConcurrentNetworkEchoTest with " << client_count << " clients sending " << echos
<< " echos" << std::endl;
Runtime runtime;
Fiber* listener =
......
......@@ -93,6 +93,5 @@ tests += [
'name': 'ConcurrentNetworkEchoTest',
'description': 'Concurrent network echo test with 10 clients',
'test_suite': 'io',
'args': ['10', '10000'],
},
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment