java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.activemq.store.journal.ActiveIOJournalBenchmark
- All Implemented Interfaces:
- junit.framework.Test
- public class ActiveIOJournalBenchmark
- extends junit.framework.TestCase
Used to micro benchmark the ActiveIO Journal operations.
Make sure you run with jvm option -server (makes a big difference).
The tests simulate storing 100000 1k jms messages to see the rate of
processing msg/sec.
- Version:
- $Revision: 1.1 $
| Fields inherited from class junit.framework.TestCase |
|
|
Method Summary |
static void |
main(java.lang.String[] args)
|
protected void |
setUp()
Sets up the fixture, for example, open a network connection. |
protected void |
tearDown()
Tears down the fixture, for example, close a network connection. |
void |
testAsyncAddMessage()
Runs at about 24000 msg/sec on OS X G4 1.5ghz. |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
MESSAGE_COUNT
private static final int MESSAGE_COUNT
- See Also:
- Constant Field Values
packet
private Packet packet
journal
private JournalImpl journal
ActiveIOJournalBenchmark
public ActiveIOJournalBenchmark()
main
public static void main(java.lang.String[] args)
setUp
protected void setUp()
throws java.lang.Exception
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
tearDown
protected void tearDown()
throws java.lang.Exception
- Description copied from class:
junit.framework.TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
testAsyncAddMessage
public void testAsyncAddMessage()
throws java.lang.Exception
- Runs at about 24000 msg/sec on OS X G4 1.5ghz. This shows that writing to the
activeio journal is not a bottleneck.