code: def stop(self):
          
          self.stopped_by_interrupt = True
  
          if self.executor:
              self.executor.stop()
docs: Stop the execution of a benchmark.
          This instance cannot be used anymore afterwards.
          Timely termination is not guaranteed, and this method may return before
          everything is terminated.