Search in sources :

Example 1 with Condition

use of org.neo4j.io.pagecache.stress.Condition in project neo4j by neo4j.

the class MuninnPageCacheStressIT method shouldHandleTheStressOfOneMillionEvictions.

@Test
public void shouldHandleTheStressOfOneMillionEvictions() throws Exception {
    DefaultPageCacheTracer monitor = new DefaultPageCacheTracer();
    Condition condition = numberOfEvictions(monitor, 1_000_000);
    PageCacheStressTest runner = new PageCacheStressTest.Builder().withWorkingDirectory(testDirectory.directory()).with(monitor).with(condition).build();
    runner.run();
}
Also used : Condition(org.neo4j.io.pagecache.stress.Condition) PageCacheStressTest(org.neo4j.io.pagecache.stress.PageCacheStressTest) DefaultPageCacheTracer(org.neo4j.io.pagecache.tracing.DefaultPageCacheTracer) PageCacheStressTest(org.neo4j.io.pagecache.stress.PageCacheStressTest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Condition (org.neo4j.io.pagecache.stress.Condition)1 PageCacheStressTest (org.neo4j.io.pagecache.stress.PageCacheStressTest)1 DefaultPageCacheTracer (org.neo4j.io.pagecache.tracing.DefaultPageCacheTracer)1