コード例 #1
0
def test_overall_build_compiled(benchmark):
    d = example.compile()
    obj = example.parse(exampledata)
    benchmark(d.build, obj)
コード例 #2
0
def test_overall_parse_compiled(benchmark):
    d = example.compile()
    benchmark(d.parse, exampledata)
コード例 #3
0
ファイル: test_benchmarks.py プロジェクト: blapid/construct
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
ファイル: test_benchmarks.py プロジェクト: blapid/construct
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)