import csv


def parse_throughput_stats(fp):
    """
    Parse throughput statistics.
    :param fp: the file path that stores the statistics
    :returns the number of pairs of initiator and responder clients a server can handle per second
    """
    counter = 0
    with open(fp) as csvfile:
        csvreader = csv.DictReader(csvfile, delimiter=' ', fieldnames=['title', 'time'])
        for _ in csvreader:
            counter += 1
    return counter/float(10)    # The experiment lasted for 20 seconds