

def run(self, transaction):
    self.results = []
    for x in range(self.repeat):
        start = default_timer()
        self.func()
        end = default_timer()
        elapsed = (end - start)
        self.results.append(elapsed)
        transaction.rollback()
    return min(self.results)

dataset/ETHPy150Open conceptsandtraining/libtree/benchmarks/benchmark.py Benchmark.run/original