ChimeraTK-cppext 01.05.02
Loading...
Searching...
No Matches
testPerformance.cc File Reference
#include <boost/test/included/unit_test.hpp>
#include "barrier.hpp"
#include "future_queue.hpp"
#include <boost/lockfree/queue.hpp>
#include <boost/lockfree/spsc_queue.hpp>
#include <boost/next_prior.hpp>
#include <boost/thread/future.hpp>
#include <iterator>
#include <thread>
+ Include dependency graph for testPerformance.cc:

Go to the source code of this file.

Classes

class  helper_iterator
 

Namespaces

namespace  std
 STL namespace.
 

Macros

#define BOOST_TEST_MODULE   test_future_queue
 

Functions

 BOOST_AUTO_TEST_CASE (future_queue_spin_wait)
 
 BOOST_AUTO_TEST_CASE (future_queue_pop_wait)
 
 BOOST_AUTO_TEST_CASE (future_queue_when_any)
 

Variables

constexpr size_t queueLength = 1000
 
constexpr size_t nTransfers = 1e6
 
constexpr size_t nQueues = 10
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   test_future_queue

Definition at line 3 of file testPerformance.cc.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( future_queue_pop_wait  )

Definition at line 164 of file testPerformance.cc.

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( future_queue_spin_wait  )

Definition at line 72 of file testPerformance.cc.

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( future_queue_when_any  )

Definition at line 233 of file testPerformance.cc.

+ Here is the call graph for this function:

Variable Documentation

◆ nQueues

constexpr size_t nQueues = 10
constexpr

Definition at line 20 of file testPerformance.cc.

◆ nTransfers

constexpr size_t nTransfers = 1e6
constexpr

Definition at line 19 of file testPerformance.cc.

◆ queueLength

constexpr size_t queueLength = 1000
constexpr

Definition at line 18 of file testPerformance.cc.