from typing import Tuple
import timeit


def bench(fn_name: str) -> Tuple[float, float]:
    """Benchmark the supplied function."""
    result = timeit.timeit(
        fn_name, globals=globals(), number=100_000
    )
    return (result, result / 100_000)