File tree Expand file tree Collapse file tree
include/ipfixprobe/outputPlugin/outputStorage
tests/performance/outputStorage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ class MCOutputStorage : public OutputStorage<ElementType> {
6767 return false ;
6868 }
6969
70- std::atomic_thread_fence (std::memory_order_seq_cst);
71- // queue.storage[writeIndex].assign(container, *m_allocationBuffer);
70+ // std::atomic_thread_fence(std::memory_order_seq_cst);
71+ // queue.storage[writeIndex].assign(container, *m_allocationBuffer);
7272 this ->m_allocationBuffer ->replace (queue.storage [writeIndex], element, writerId);
7373 std::atomic_thread_fence (std::memory_order_seq_cst);
7474 queue.enqueCount ++;
@@ -117,15 +117,15 @@ class MCOutputStorage : public OutputStorage<ElementType> {
117117 this ->shiftAllQueues ();
118118 d_s = true ;
119119 }
120- std::atomic_thread_fence (std::memory_order_seq_cst);
120+ // std::atomic_thread_fence(std::memory_order_seq_cst);
121121 const std::size_t readIndex
122122 = queue.groupData [readerGroupIndex]->headIndex ++ % queue.storage .size ();
123- std::atomic_thread_fence (std::memory_order_seq_cst);
123+ // std::atomic_thread_fence(std::memory_order_seq_cst);
124124
125125 auto & y = queue.groupData [readerGroupIndex];
126- if (readerData.cachedEnqueCounts [currentQueueIndex] > queue.enqueCount ) {
126+ /* if (readerData.cachedEnqueCounts[currentQueueIndex] > queue.enqueCount) {
127127 throw std::runtime_error("XXXXX");
128- }
128+ }*/
129129
130130 readerData.lastReadSuccessful = true ;
131131 return queue.storage [readIndex];
Original file line number Diff line number Diff line change @@ -307,9 +307,9 @@ TEST(TestOutputStorage, Perf)
307307{
308308 std::cout << " Perf test" << std::endl;
309309 // makePerformanceTest<ipxp::output::MCOutputStorage>("MCOutputStorage");
310- makeTest<ipxp::output::MC2OutputStorage <ipxp::output::OutputContainer>>(
311- 1 ,
312- {1 },
310+ makeTest<ipxp::output::MCOutputStorage <ipxp::output::OutputContainer>>(
311+ 32 ,
312+ {8 , 8 , 8 , 8 },
313313 false ,
314314 10'000'064 );
315315}
You can’t perform that action at this time.
0 commit comments