analysis.os: Benchmark some typical usages of Kernel Analysis
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.kernel.core.tests / perf / org / eclipse / tracecompass / lttng2 / kernel / core / tests / perf / analysis / kernel / KernelAnalysisBenchmark.java
index 11c3d22be85a9464a19b63d70637b97eda565aea..3b45e94cda728efb16f5e970ef3f97e69c654061 100644 (file)
@@ -45,7 +45,10 @@ import org.junit.runners.Parameterized.Parameters;
 @RunWith(Parameterized.class)
 public class KernelAnalysisBenchmark {
 
-    private static final String TEST_ID = "org.eclipse.linuxtools#LTTng kernel analysis#";
+    /**
+     * Test test ID for kernel analysis benchmarks
+     */
+    public static final String TEST_ID = "org.eclipse.linuxtools#LTTng kernel analysis#";
     private static final int LOOP_COUNT = 25;
 
     private final TestModule fTestModule;
@@ -108,6 +111,22 @@ public class KernelAnalysisBenchmark {
         runTest(CtfTestTrace.TRACE2, "Trace2", fTestModule);
     }
 
+    /**
+     * Run the benchmark with "many thread"
+     */
+    @Test
+    public void testManyThreads() {
+        runTest(CtfTestTrace.MANY_THREADS, "Many Threads", fTestModule);
+    }
+
+    /**
+     * Run the benchmark with "django httpd"
+     */
+    @Test
+    public void testDjangoHttpd() {
+        runTest(CtfTestTrace.DJANGO_HTTPD, "Django httpd", fTestModule);
+    }
+
     private static void runTest(@NonNull CtfTestTrace testTrace, String testName, TestModule testModule) {
         Performance perf = Performance.getDefault();
         PerformanceMeter pm = perf.createPerformanceMeter(TEST_ID + testName + testModule.getTestNameString());
This page took 0.025058 seconds and 5 git commands to generate.