Beispiel #1
0
 int PerformanceTest::run()
 {
     if (m_testOperations.empty() ||
         m_allocationSizes.empty() ||
         m_freeOperation == nullptr)
     {
         cout << "ERROR: Test not initialized" << endl;
         return 1;
     }
     // Create threads
     prepareWorkers();
     for (size_t repeat = 0; repeat < m_repeatsCount; repeat++)
     {
         EMIT(1, "Test run #" << repeat)
         if (m_executionMode == ExecutionMode::SingleInteration)
         {
             runIteration();
         }
         else
         {
             // Perform each operations list in separate iteration, for each thread
             for (vector<Operation*> & ops : m_testOperations)
             {
                 for (Worker * worker : m_workers)
                 {
                     worker->setOperations(ops);
                 }
                 runIteration();
             }
         }
     }
     return 0;
 }
 void FieldManager::run(long numberOfIterations) {
   for (long i = 0; i < numberOfIterations && ! stopped; i++) {
     currentIteration++;
     runIteration();
     /*system("clear");
     status();
     usleep(100000);*/
   }
 }
Beispiel #3
0
void Transport::run() {
    int64_t now;
    while (!_stop) {
        runIteration(now);
    }
}
Beispiel #4
0
void ToRun::runSim(){
    for (int i = 0; i < 100; i++){
        runIteration();
    }
}
void BidirPathTracing::render()
{
	for (int iter = 0; iter < iterations; iter++)
		runIteration(iter);
}