MCPcopy Create free account
hub / github.com/Abc-Arbitrage/Disruptor-cpp / writeReport

Method writeReport

Disruptor.TestTools/LatencyRecorder.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 void LatencyRecorder::writeReport(std::ostream& stream) const
41 {
42 stream
43 << "min: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::min(m_accumulator)))
44 << ", mean: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::mean(m_accumulator)))
45 << ", max: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::max(m_accumulator)))
46 << ", Q99.99: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.9999)))
47 << ", Q99.9: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.999)))
48 << ", Q99: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.99)))
49 << ", Q98: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.98)))
50 << ", Q95: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.95)))
51 << ", Q93: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.93)))
52 << ", Q90: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.90)))
53 << ", Q50: " << DurationPrinter(static_cast< std::int64_t >(boost::accumulators::quantile(m_accumulator, boost::accumulators::quantile_probability = 0.50)))
54 ;
55 }
56
57} // namespace Tests
58} // namespace Disruptor

Callers 1

toStringMethod · 0.80

Calls 1

DurationPrinterClass · 0.85

Tested by 1

toStringMethod · 0.64