public class StressTestGroupCommit extends ProxyTestCase<Journal> implements com.bigdata.testutil.ExperimentDriver.IComparisonTest
The basic test submits a bunch of unisolated write tasks to a
WriteExecutorService
of a known capacity. The write tasks are
designed to have with non-overlapping lock requirements so that they may run
with the maximum possible concurrency. The test the examines how many of the
tasks make it into the commit group (on average).
In order for there to be a commit, each task must write some data. In the
current design each task creates a named index. This means that there is some
data to write, but also that some synchronization is required on
AbstractJournal._name2Addr
.
Modifier and Type | Class and Description |
---|---|
static class |
StressTestGroupCommit.GenerateExperiment
Experiment generation utility class.
|
static interface |
StressTestGroupCommit.TestOptions
Options understood by this stress test.
|
TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
StressTestGroupCommit() |
StressTestGroupCommit(String arg0) |
Modifier and Type | Method and Description |
---|---|
com.bigdata.testutil.ExperimentDriver.Result |
doComparisonTest(Properties properties) |
static void |
main(String[] args)
Run the stress test configured in the code.
|
void |
setUpComparisonTest(Properties properties) |
void |
tearDownComparisonTest() |
void |
test_groupCommit()
Runs a single condition.
|
void |
test_singleThreadIndexCreationRate()
Measures the maximum rate at which a single thread can register named
indices.
|
void |
test_twothreadIndexCreationRate()
Measures the maximum rate at which two threads can register named
indices.
|
getDelegate, getOurDelegate, getProperties, getStore, getStore, reopenStore, setDelegate, setUp, tearDown
checkIfProxy, fail, getRandomData, setUp, tearDown
assertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomData
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, 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 StressTestGroupCommit()
public StressTestGroupCommit(String arg0)
arg0
- public void test_singleThreadIndexCreationRate()
Note: This is for data collection - it is not really a unit test.
public void test_twothreadIndexCreationRate() throws InterruptedException
Note: This is for data collection - it is not really a unit test.
InterruptedException
public void test_groupCommit() throws Exception
Exception
public com.bigdata.testutil.ExperimentDriver.Result doComparisonTest(Properties properties) throws Exception
doComparisonTest
in interface com.bigdata.testutil.ExperimentDriver.IComparisonTest
Exception
public void setUpComparisonTest(Properties properties) throws Exception
setUpComparisonTest
in interface com.bigdata.testutil.ExperimentDriver.IComparisonTest
Exception
public void tearDownComparisonTest() throws Exception
tearDownComparisonTest
in interface com.bigdata.testutil.ExperimentDriver.IComparisonTest
Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.