public abstract static class BenchmarkJournalWriteRate.AbstractBenchmarkOptimium extends TestCase2
Does N writes of M size data blocks on a pre-extended file using pure sequential IO. Small writes may be used to estimate the maximum throughput for large numbers of small writes. Large writes may be used to estimate the absolute maximum throughput for your platform (OS + disk system).
Note: This test is conducted without the use of a journal. It is bundled in the same source code file so that we can compare the journal performance with the raw IO performance of the platform.
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
BenchmarkJournalWriteRate.AbstractBenchmarkOptimium() |
Modifier and Type | Method and Description |
---|---|
void |
doOptimiumWriteRateTest(int recordSize) |
protected String |
getFilename()
The file is named for the test class.
|
protected int |
getInitialExtent()
100M
|
abstract int |
getRecordSize()
Override to specify the record size.
|
void |
setUp() |
void |
tearDown() |
void |
testNoIsolation() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public BenchmarkJournalWriteRate.AbstractBenchmarkOptimium()
protected String getFilename()
Note: contents are not actually a journal.
public abstract int getRecordSize()
protected int getInitialExtent()
public void setUp() throws IOException
setUp
in class junit.framework.TestCase
IOException
public void tearDown() throws IOException
tearDown
in class junit.framework.TestCase
IOException
public void testNoIsolation() throws IOException
IOException
public void doOptimiumWriteRateTest(int recordSize) throws IOException
recordSize
- IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.