//TODO: mvoe this onbox. it's a baseline perf number for what //PDUPeerEndpointFD needs to do TEST_F(PDUPeerEndpointFDUnitTest, DISABLED_WillReadWritePDUsAsLongAsThereIsRoom) { logManager.EndLogging(__FILE__ ".log"); setupDefaultFDPair(); TimerClock c; c.Start(); const int iterations(1000); int totalIO(0); Forte::PDU out; Forte::PDUPtr pdu = makeTestPDU(); for (int i=0; i<iterations; ++i) { while (mEndpoint2->RecvPDU(out)) { ASSERT_EQ(*pdu, out); ++totalIO; } try { while (true) { mPDUQueue1->EnqueuePDU(pdu); ++totalIO; } } catch (EPDUQueueFull& e) { } } c.Stop(); hlogstream(HLOG_INFO, iterations << " iterations took " << c.GetTime() << " and processed " << totalIO); //memmove impl baseline on laptop with ASSERT_EQ commented out //1000 iterations took 58.369622753 and processed 1003371 teardownDefaultFDPair(); logManager.BeginLogging(__FILE__ ".log", HLOG_ALL); }
static void TearDownTestCase() { logManager.EndLogging(__FILE__ ".log"); logManager.EndLogging("//stderr"); };
static void TearDownTestCase() { logManager.EndLogging("//stdout"); }
static void TearDownTestCase() { logManager.EndLogging(); }