import tensorflow as tf

      @dynamic_batching.batch_fn
      def f(a, b):
        return a + b

      outputs = []
      for _ in xrange(1000):
        outputs.append(f(tf.ones([1, 10]), tf.ones([1, 10])))
      op_to_benchmark = tf.group(*outputs)

      tf.train.start_queue_runners()

      self.run_op_benchmark(
          name='batching_many_small',
          sess=session,
