Commit 2548d32c authored by Florian Schmaus's avatar Florian Schmaus
Browse files

Merge branch 'adjust-test-load' into 'master'

reduce test load when logging

See merge request i4/manycore/emper!282
parents d829d688 905fb18b
Pipeline #73294 passed with stages
in 25 minutes and 29 seconds
......@@ -7,9 +7,11 @@
#include "Actor.hpp" // for Actor
#include "BinaryPrivateSemaphore.hpp" // for BPS
#include "CountingPrivateSemaphore.hpp" // for CPS
#include "Fiber.hpp" // for Fiber
#include "Runtime.hpp" // for Runtime
#include "emper.hpp" // for spawn
#include "Debug.hpp"
#include "Fiber.hpp"
#include "Runtime.hpp"
#include "emper-config.h"
#include "emper.hpp"
class AlarmActor : public Actor<BPS*> {
protected:
......@@ -22,7 +24,7 @@ class AlarmActor : public Actor<BPS*> {
auto main(int argc, char* argv[]) -> int {
unsigned int sleeper_count = std::thread::hardware_concurrency();
unsigned int sleeps = 1000;
unsigned int sleeps = EMPER_LOG_LEVEL > Info ? 500 : 2500;
if (argc > 3) {
std::cerr << "Usage: " << argv[0] << " [fiber count] [block count]" << std::endl;
......
......@@ -35,7 +35,7 @@ class SumActor : public Actor<uint64_t> {
static void mainFiber(void* runtime_ptr) {
Runtime& runtime = *(Runtime*)runtime_ptr;
const unsigned int FIBER_COUNT = 1000;
const unsigned int FIBER_COUNT = EMPER_LOG_LEVEL > Info ? 500 : 2500;
const uint64_t FIBERS_COUNT_TO = 1000;
const uint64_t PER_FIBER_SUM = (FIBERS_COUNT_TO * (FIBERS_COUNT_TO + 1)) / 2;
const uint64_t EXPECTED_SUM = FIBER_COUNT * PER_FIBER_SUM;
......
......@@ -10,6 +10,7 @@
#include "Common.hpp" // for DIE_MSG_ERRNO, DIE_MSG
#include "Debug.hpp"
#include "emper-config.h"
#include "fixtures/assert.hpp"
#include "io.hpp"
#include "io/Future.hpp" // for ReadFuture, CloseFuture, WriteFuture
......@@ -50,7 +51,7 @@ static void successLoop() {
DIE_MSG_ERRNO("eventfd failed");
}
const unsigned ITERATIONS = 10000;
const unsigned ITERATIONS = EMPER_LOG_LEVEL > Info ? 5000 : 25000;
for (unsigned i = 0; i < ITERATIONS; ++i) {
uint64_t write_buf = 42;
WriteFuture writeFuture(efd, &write_buf, sizeof(write_buf), 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment