pub fn bench<F: Fn(), P: AsRef<Path>>(
    path: P,
    f: F
) -> Result<(), Box<dyn Error>>