class_docstr: Base class for dataset benchmarks.
class_docstr_tok: ["Base","class","for","dataset","benchmarks","."]
docstr: Benchmarks the op.
  
  Runs the op `iters` times. In each iteration, the benchmark measures
  the time it takes to go execute the op.
  
  Args:
    op: The tf op to benchmark.
    iters: Number of times to repeat the timing.
    warmup: If true, warms up the session caches by running an untimed run.
    session_config: A ConfigProto protocol buffer with configuration options
      for the session. Applicable only for benchmarking in graph mode.
  
  Returns:
    A float, representing the per-execution wall time of the op in seconds.
    This is the median time (with respect to `iters`) it takes for the op
    to be executed `iters` num of times.
docstr_tok: ["Benchmarks","the","op",".","Runs","the","op","`","iters","`","times",".","In","each","iteration",",","the","benchmark","measures","the","time","it","takes","to","go","execute","the","op",".","Args",":","op",":","The","tf","op","to","benchmark",".","iters",":","Number","of","times","to","repeat","the","timing",".","warmup",":","If","true",",","warms","up","the","session","caches","by","running","an","untimed","run",".","session_config",":","A","ConfigProto","protocol","buffer","with","configuration","options","for","the","session",".","Applicable","only","for","benchmarking","in","graph","mode",".","Returns",":","A","float",",","representing","the","per-execution","wall","time","of","the","op","in","seconds",".","This","is","the","median","time","(","with","respect","to","`","iters","`",")","it","takes","for","the","op","to","be","executed","`","iters","`","num","of","times","."]
code: def run_op_benchmark(
      self, op, iters=1, warmup=True, session_config=None
  ):
      """Benchmarks the op.
  
      Runs the op `iters` times. In each iteration, the benchmark measures
      the time it takes to go execute the op.
  
      Args:
        op: The tf op to benchmark.
        iters: Number of times to repeat the timing.
        warmup: If true, warms up the session caches by running an untimed run.
        session_config: A ConfigProto protocol buffer with configuration options
          for the session. Applicable only for benchmarking in graph mode.
  
      Returns:
        A float, representing the per-execution wall time of the op in seconds.
        This is the median time (with respect to `iters`) it takes for the op
        to be executed `iters` num of times.
      """
  
      if context.executing_eagerly():
          return self._run_eager_benchmark(
              iterable=op, iters=iters, warmup=warmup
          )
  
      return self._run_graph_benchmark(
          iterable=op,
          iters=iters,
          warmup=warmup,
          session_config=session_config,
      )
  
file_path: tensorflow/tensorflow/python/data/benchmarks/benchmark_base.py
imports: import time
  import numpy
  from tensorflow.python.client import session
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
  from tensorflow.python.data.util import nest
  from tensorflow.python.eager import context
  from tensorflow.python.platform import test
label_desc: Use image node_id 3 for calling the DatasetBenchmarkBase obj's underlying member method code with example usage: obj.run_op_benchmark(op, iters, warmup, session_config) and returns: self, self