class_docstr: Represents one run of a single Java Microbenchmark Harness
      
class_docstr_tok: ["Represents","one","run","of","a","single","Java","Microbenchmark","Harness"]
code: def unit(self):
      if self.score_unit.startswith("ops/"):
          return "items_per_second"
      elif self.score_unit.endswith("/op"):
          return "items_per_second"
      else:
          return "?"
  
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 4 for calling the JavaMicrobenchmarkHarnessObservation obj's underlying member method code with example usage: obj.unit() and returns: str, str, str