class_docstr: A set of JavaMicrobenchmarkHarnessObservations. 
class_docstr_tok: ["A","set","of","JavaMicrobenchmarkHarnessObservations","."]
docstr: Initialize a JavaMicrobenchmarkHarness.
  
  Parameters
  ----------
  name: str
        Name of the benchmark
  forks: int
  warmups: int
  runs: int
  runs: list(JavaMicrobenchmarkHarnessObservation)
        Repetitions of JavaMicrobenchmarkHarnessObservation run.
docstr_tok: ["Initialize","a","JavaMicrobenchmarkHarness",".","Parameters","--","--","--","--","--","name",":","str","Name","of","the","benchmark","forks",":","int","warmups",":","int","runs",":","int","runs",":","list","(","JavaMicrobenchmarkHarnessObservation",")","Repetitions","of","JavaMicrobenchmarkHarnessObservation","run","."]
code: def __init__(self, name, runs):
      """Initialize a JavaMicrobenchmarkHarness.
  
      Parameters
      ----------
      name: str
            Name of the benchmark
      forks: int
      warmups: int
      runs: int
      runs: list(JavaMicrobenchmarkHarnessObservation)
            Repetitions of JavaMicrobenchmarkHarnessObservation run.
  
      """
      self.name = name
      self.runs = sorted(runs, key=lambda b: b.value)
      unit = self.runs[0].unit
      time_unit = "N/A"
      less_is_better = not unit.endswith("per_second")
      values = [b.value for b in self.runs]
      times = []
      # Slight kludge to extract the UserCounters for each benchmark
      counters = self.runs[0].counters
      super().__init__(
          name, unit, less_is_better, values, time_unit, times, counters
      )
  
imports: from itertools import filterfalse, groupby, tee
  import json
  import subprocess
  from tempfile import NamedTemporaryFile
  from .core import Benchmark
  from ..utils.command import Command
  from ..utils.maven import Maven
label_desc: Use image node_id 1 to create a new JavaMicrobenchmarkHarness object from inherited base classes: Benchmark with example: obj = JavaMicrobenchmarkHarness(name, runs)