class_docstr: Run a Java Micro Benchmark Harness
  
  This assumes the binary supports the standard command line options,
  notably `-Dbenchmark_filter`
class_docstr_tok: ["Run","a","Java","Micro","Benchmark","Harness","This","assumes","the","binary","supports","the","standard","command","line","options",",","notably","`","-Dbenchmark_filter","`"]
code: def results(self, repetitions):
      with NamedTemporaryFile(suffix=".json") as out:
          argv = [
              "-Dbenchmark.runs={}".format(repetitions),
              "-Dbenchmark.resultfile={}".format(out.name),
              "-Dbenchmark.resultformat=json",
          ]
          if self.benchmark_filter:
              argv.append(
                  "-Dbenchmark.filter={}".format(self.benchmark_filter)
              )
  
          self.build.benchmark(*argv, check=True)
          return json.load(out)
  
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 3 for calling the JavaMicrobenchmarkHarnessCommand obj's underlying member method code with example usage: obj.results(repetitions) and returns: json