def test_overall_build_compiled(benchmark):
    d = example.compile()
    obj = example.parse(exampledata)
    benchmark(d.build, obj)
def test_overall_parse_compiled(benchmark):
    d = example.compile()
    benchmark(d.parse, exampledata)
예제 #3
0
def test_overall_build_compiled(benchmark):
    d = cached("example-compiled", lambda: example.compile("example_compiled.py"))
    obj = example.parse(exampledata)
    benchmark(d.build, obj)
예제 #4
0
def test_overall_parse_compiled(benchmark):
    d = cached("example-compiled", lambda: example.compile("example_compiled.py"))
    benchmark(d.parse, exampledata)
예제 #5
0
def test_overall_build_compiled(benchmark):
    d = example.compile()
    obj = example.parse(exampledata)
    benchmark(d.build, obj)
예제 #6
0
def test_overall_parse_compiled(benchmark):
    d = example.compile()
    benchmark(d.parse, exampledata)