diff --git a/python/mops/benchmarks/benchmark.py b/python/mops/benchmarks/benchmark.py index 0fe07b1..7ba4146 100644 --- a/python/mops/benchmarks/benchmark.py +++ b/python/mops/benchmarks/benchmark.py @@ -1,3 +1,4 @@ +import gc import math import time @@ -6,6 +7,8 @@ def benchmark(function, repeats=1000, warmup=10, plot=True): + gc.disable() + for _ in range(warmup): function()