import time


def compute_average(n):
    """Perform n appends to an empty list and return average time elapsed."""
    data = []
    start = time.time()
    for k in range(n):
        data.append(None)
    end = time.time()
    return (end - start) / n