def benchmark_estimator(estimator, X_test, n_bulk_repeats=30, verbose=False):
 atomic_runtimes = atomic_benchmark_estimator(estimator, X_test, verbose)
 bulk_runtimes = bulk_benchmark_estimator(estimator, X_test, n_bulk_repeats, verbose)
 return (atomic_runtimes, bulk_runtimes)

def benchmark_estimator ( estimator , X_test , n_bulk_repeats = 30 , verbose = False ) : atomic_runtimes = atomic_benchmark_estimator ( estimator , X_test , verbose ) bulk_runtimes = bulk_benchmark_estimator ( estimator , X_test , n_bulk_repeats , verbose ) return ( atomic_runtimes , bulk_runtimes )
measure runtimes of prediction in both atomic and bulk mode .