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)
Esempio n. 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)
Esempio n. 4
0
def test_overall_parse_compiled(benchmark):
    d = cached("example-compiled", lambda: example.compile("example_compiled.py"))
    benchmark(d.parse, exampledata)
Esempio n. 5
0
def test_overall_build_compiled(benchmark):
    d = example.compile()
    obj = example.parse(exampledata)
    benchmark(d.build, obj)
Esempio n. 6
0
def test_overall_parse_compiled(benchmark):
    d = example.compile()
    benchmark(d.parse, exampledata)