libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
batsboe_exchanges_performance.cpp File Reference
Include dependency graph for batsboe_exchanges_performance.cpp:

Go to the source code of this file.

Classes

struct  only_sim< exchg_t >
 
struct  simulator_and_link< exchg_t >
 
struct  simulator_and_link_client_too< exchg_t >
 

Macros

#define BOOST_TEST_MODULE   isimud_tests
 

Typedefs

using api_thread_traits = ppd::thread_params< ppd::platform_api >
 
using timed_results_t = ave_deviation_meter< double >
 
using exchg_t_types = boost::mpl::list< std::pair< exchanges::BATSBOE::EU::v1::link_t< exchanges::FIX::v5_0sp2::MsgTypes >, exchanges::BATSBOE::EU::v1::simulator_t >, std::pair< exchanges::BATSBOE::US::v1::link_t< exchanges::FIX::v5_0sp2::MsgTypes >, exchanges::BATSBOE::US::v1::simulator_t > >
 

Functions

const boost::asio::ip::address localhost (boost::asio::ip::address_v4::loopback())
 
const exchanges::BATSBOE::common::SeqNum_t sequenceNumber (1)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (reject, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (order_rejected_at_a_time, exchg_t, exchg_t_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (order_rejects_parallel, exchg_t, exchg_t_types)
 

Variables

const unsigned short client_port =12367u
 
const unsigned short unused_primary_port =client_port+1
 
const unsigned short unused_secondary_port =unused_primary_port+1
 
const exchanges::BATSBOE::common::ClientOrderID_t clientOrderId1 {"12345678901234test1"}
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   isimud_tests

Definition at line 21 of file batsboe_exchanges_performance.cpp.

Typedef Documentation

◆ api_thread_traits

using api_thread_traits = ppd::thread_params<ppd::platform_api>

Definition at line 50 of file batsboe_exchanges_performance.cpp.

◆ exchg_t_types

◆ timed_results_t

using timed_results_t = ave_deviation_meter<double>

Definition at line 51 of file batsboe_exchanges_performance.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/3]

BOOST_AUTO_TEST_CASE_TEMPLATE ( order_rejected_at_a_time  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 29. \see thread_traits::numa_index \xrefitem test 179. \see thread_traits::numa_index \xrefitem test 202. \see thread_traits::numa_index

Definition at line 238 of file batsboe_exchanges_performance.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/3]

BOOST_AUTO_TEST_CASE_TEMPLATE ( order_rejects_parallel  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 30. \see thread_traits::numa_index \xrefitem test 180. \see thread_traits::numa_index \xrefitem test 203. \see thread_traits::numa_index

Definition at line 274 of file batsboe_exchanges_performance.cpp.

References jmmcg::LIBJMMCG_VER_NAMESPACE::cpu_timer::pause_for_usec().

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/3]

BOOST_AUTO_TEST_CASE_TEMPLATE ( reject  ,
exchg_t  ,
exchg_t_types   
)

\xrefitem test 28. \xrefitem test 178. \xrefitem test 188. \xrefitem test 189. \xrefitem test 201. \xrefitem test 211. \xrefitem test 212. \xrefitem test 249. \xrefitem test 264. \xrefitem test 265. \xrefitem test 283.

Definition at line 169 of file batsboe_exchanges_performance.cpp.

References isimud::ISIMUD_VER_NAMESPACE::exchanges::common::thread_traits::client_to_exchange_thread, and jmmcg::LIBJMMCG_VER_NAMESPACE::socket::high.

◆ localhost()

const boost::asio::ip::address localhost ( boost::asio::ip::address_v4::loopback()  )

◆ sequenceNumber()

const exchanges::BATSBOE::common::SeqNum_t sequenceNumber ( )

Variable Documentation

◆ client_port

const unsigned short client_port =12367u

Definition at line 54 of file batsboe_exchanges_performance.cpp.

◆ clientOrderId1

const exchanges::MIT::common::ClientOrderID_t clientOrderId1 {"12345678901234test1"}

Definition at line 57 of file batsboe_exchanges_performance.cpp.

◆ unused_primary_port

const unsigned short unused_primary_port =client_port+1

Definition at line 55 of file batsboe_exchanges_performance.cpp.

◆ unused_secondary_port

const unsigned short unused_secondary_port =unused_primary_port+1

Definition at line 56 of file batsboe_exchanges_performance.cpp.