PerformanceCompareStressTest is useful to get an idea on relative performance between Infinispan
in local or clustered mode against a RAMDirectory or FSDirectory. To be reliable set a long
DURATION_MS and a number of threads similar to the use case you're interested in: results might
vary on the number of threads because of the lock differences. This is not meant as a benchmark
but used to detect regressions.
This requires Lucene > 2.9.1 or Lucene > 3.0.0 because of
- Sanne Grinovero
@Test(groups = "profiling", testName = "lucene.profiling.PerformanceCompareStressTest", sequential = true)
The number of terms in the dictionary used as source of terms by the IndexWriter to produce
Concurrent Threads in tests
boolean directoriesCreated = indexDir.mkdirs();
assert directoriesCreated : "couldn't create directory for FSDirectory test";
It's much better to compare performance out of the scope of TestNG by
running this directly as TestNG enables assertions.
Suggested test switches:
-Xmx2G -Xms2G -XX:MaxPermSize=128M -XX:+HeapDumpOnOutOfMemoryError -Xss512k -XX:HeapDumpPath=/tmp/java_heap -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 -Xbatch -server -XX:+UseCompressedOops -XX:+UseLargePages -XX:LargePageSizeInBytes=2m -XX:+AlwaysPreTouch