def METHOD_NAME(cycles=10, n_pts=1000, sz=(1000, 1000)):
    """ Render a sin wave to a compiled_path then display it repeatedly.
    """
    width, height = sz
    pts = zeros((n_pts, 2), float)
    x = pts[:, 0]
    y = pts[:, 1]
    interval = width / float(n_pts)
    x[:] = arange(0, width, interval)
    y[:] = height / 2.0 + height / 2.0 * sin(x * 2 * pi / n_pts)
    path = agg.CompiledPath()
    path.lines(pts)
    # path.move_to(pts[0,0],pts[0,1])
    # for x,y in pts[1:]:
    #    path.line_to(x,y)
    t1 = perf_counter()
    # TODO: module 'kiva.agg' has no attribute 'GraphicsContextBitmap'
    gc = agg.GraphicsContextBitmap(sz)
    for _ in range(cycles):
        # gc.clear()
        gc.add_path(path)
        gc.stroke_path()
    t2 = perf_counter()
    tot_time = t2 - t1
    print("tot,per cycle:", tot_time, tot_time / cycles)
    return