Use explicit exceptions in benchmark