Path 1: 10 calls (1.0)

struct_time (10)

0 (1) 10 (1) 100 (1) 1000 (1) 10000 (1) 100000 (1) 1000000 (1) 1234567890 (1) 1262304000 (1) 1275785153 (1)

1def timegm(tuple):
2    """Unrelated but handy function to calculate Unix timestamp from GMT."""
3    year, month, day, hour, minute, second = tuple[:6]
4    days = datetime.date(year, month, 1).toordinal() - _EPOCH_ORD + day - 1
5    hours = days*24 + hour
6    minutes = hours*60 + minute
7    seconds = minutes*60 + second
8    return seconds