Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-2063

Use JMH Visualizer for plotting performance test results

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Medium Medium
    • New Delhi Release
    • None
    • CPS-Core
    • None

      The tool https://github.com/jzillmann/jmh-visualizer is used for visualizing benchmark results from the Java Microbenchmark Harness (JMH). While we do not use JMH in CPS, we could output our test results in the same JSON format, so the results can be loaded in to JMH Visualizer.

      Here is example JSON:

      [
        {
          "benchmark": "org.onap.cps.Read_datatrees_with_no_descendants",
          "mode": "ss",
          "threads": 1,
          "forks": 1,
          "warmupIterations": 0,
          "warmupTime": "1 s",
          "warmupBatchSize": 1,
          "measurementIterations": 1,
          "measurementTime": "1 s",
          "measurementBatchSize": 1,
          "primaryMetric": {
            "score": 10,
            "scoreError": "NaN",
            "scoreUnit": "ms",
            "rawData": [
              [
                10
              ]
            ]
          },
          "secondaryMetrics": {}
        },
        {
          "benchmark": "org.onap.cps.batch_delete_100_containers",
          "mode": "ss",
          "threads": 1,
          "forks": 1,
          "warmupIterations": 0,
          "warmupTime": "1 s",
          "warmupBatchSize": 1,
          "measurementIterations": 1,
          "measurementTime": "1 s",
          "measurementBatchSize": 1,
          "primaryMetric": {
            "score": 190,
            "scoreError": "NaN",
            "scoreUnit": "ms",
            "rawData": [
              [
                190
              ]
            ]
          },
          "secondaryMetrics": {}
        }
      ] 

            danielhanrahan Daniel Hanrahan
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: