MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / SendFixture

Method SendFixture

performance/receiver.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 proto::AccountMessage account;
37
38 SendFixture()
39 {
40 // Create a new account with some orders
41 account.body = { 1, "Test", proto::State::good, { "USD", 1000.0 }, std::make_optional<proto::Balance>({ "EUR", 100.0 }), {} };
42 account.body.orders.emplace_back(1, "EURUSD", proto::OrderSide::buy, proto::OrderType::market, 1.23456, 1000.0);
43 account.body.orders.emplace_back(2, "EURUSD", proto::OrderSide::sell, proto::OrderType::limit, 1.0, 100.0);
44 account.body.orders.emplace_back(3, "EURUSD", proto::OrderSide::buy, proto::OrderType::stop, 1.5, 10.0);
45
46 // Serialize and send the account
47 sender.send(account);
48 }
49};
50
51BENCHMARK_FIXTURE(SendFixture, "Receive")

Callers

nothing calls this directly

Calls 2

emplace_backMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected