Package org.simplesim.examples.testing
Class LargeQueueTest
java.lang.Object
org.simplesim.examples.testing.LargeQueueTest
Performance test and comparison of various implementations of
EventQueue
Enqueue and dequeue functionality is used most often in simulation applications. So, this test focuses on a large number of events with repeated queue usage.
-
Constructor Summary
ConstructorDescriptionLargeQueueTest
(org.simplesim.examples.testing.LargeQueueTest.QueueType queueType) -
Method Summary
Modifier and TypeMethodDescriptionlong
Test for dequeuing all current eventsstatic void
long
populateEventQueue
(long initTime) Initializes the event queue withcountTotal
events
-
Constructor Details
-
LargeQueueTest
public LargeQueueTest(org.simplesim.examples.testing.LargeQueueTest.QueueType queueType)
-
-
Method Details
-
populateEventQueue
public long populateEventQueue(long initTime) Initializes the event queue withcountTotal
events -
doDequeueAllNextEvents
public long doDequeueAllNextEvents()Test for dequeuing all current eventsDequeues the all current events with the same time stamp, using
dequeueAll()
functionality. The event queue will be empty after this method. -
main
- Parameters:
args
-
-