Added JCtools mpmc array queue test. Added missing libs. Added launch configs to idea.
parent
4cd39d1a2a
commit
46c6274437
|
@ -7,19 +7,7 @@
|
|||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
<CLASSES>
|
||||
<root url="file://$MODULE_DIR$/libs" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="file://$MODULE_DIR$/libs" />
|
||||
</SOURCES>
|
||||
<jarDirectory url="file://$MODULE_DIR$/libs" recursive="false" />
|
||||
<jarDirectory url="file://$MODULE_DIR$/libs" recursive="false" type="SOURCES" />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="library" name="libs" level="project" />
|
||||
</component>
|
||||
<component name="org.twodividedbyzero.idea.findbugs">
|
||||
<option name="_basePreferences">
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,28 @@
|
|||
package dorkbox.benchmark;
|
||||
|
||||
import dorkbox.benchmark.common.Base_BlockingQueue;
|
||||
import dorkbox.benchmark.common.Base_Queue;
|
||||
|
||||
@SuppressWarnings("Duplicates")
|
||||
public class Test_Queue_MpmcArrayQueue extends Base_BlockingQueue {
|
||||
|
||||
public static final int REPETITIONS = 50 * 1000 * 100;
|
||||
|
||||
private static final int bestRunsToAverage = 4;
|
||||
private static final int runs = 10;
|
||||
private static final int warmups = 3;
|
||||
|
||||
public static void main(final String[] args) throws Exception {
|
||||
System.out.format("reps: %,d %s: \n", REPETITIONS, Test_Queue_MpmcArrayQueue.class.getSimpleName());
|
||||
|
||||
for (int concurrency = 1; concurrency < 5; concurrency++) {
|
||||
final org.jctools.queues.MpmcArrayQueue queue = new org.jctools.queues.MpmcArrayQueue(1 << 17);
|
||||
final Integer initialValue = Integer.valueOf(777);
|
||||
new MpmcArray_NonBlock().run(REPETITIONS, concurrency, concurrency, warmups, runs, bestRunsToAverage, false, queue,
|
||||
initialValue);
|
||||
}
|
||||
}
|
||||
|
||||
static
|
||||
class MpmcArray_NonBlock extends Base_Queue<Integer> {}
|
||||
}
|
Loading…
Reference in New Issue