def _compute_req_per_sec(self, stat_dict):
        try:
            sd_start = stat_dict['start']
        except __HOLE__:
            stat_dict['avg_req_per_sec'] = 0.0
        else:
            delta_t = stat_dict['stop'] - sd_start
            if delta_t != 0:
                stat_dict['avg_req_per_sec'] = round(
                    stat_dict['req_count'] / delta_t,
                    6)
            else:
                stat_dict['avg_req_per_sec'] = float("inf")
dataset/ETHPy150Open swiftstack/ssbench/ssbench/reporter.py/Reporter._compute_req_per_sec