I would like generalize this to include it in timer_plus.
def benchmark_this(fun, *args, N=None):
res = []
if N is None:
N = map(lambda i: 10**i, range(7))
for Ni in N:
x = np.tile(range(10), Ni)
n = np.array([1, 1, 1, 1], dtype=np.int64)
stmt = "func(*args)"
t = timer_plus.Timer(stmt, globals=locals())
t.repeat_autorange(10)
r = t.statistics
r.name = "N=%s" % len(x)
res += [r]
print(pd.concat(res, axis=1))