def benchmark(iterations, scale):
    """
    Deserialize a string C{iterations} times.  Make the string longer based
    on C{scale}.

    Prints the mean time per parse call.
    """
    s = serialize(BASE * scale)
    before = time()
    for i in xrange(iterations):
        parse(s)
    after = time()
    print (after - before) / iterations, 'per call'
dataset/ETHPy150Open twisted/nevow/benchmarks/json_string_tokenizer.py/benchmark/original