Skip to content

Commit

Permalink
chore: add pure execution benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwrede committed May 20, 2024
1 parent 2ebe580 commit 297a407
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test_parser/benchmarks/test_core_full_schema_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ def test_pycon_query_execution_graphql_core():
e = execute(
schema, query,
)
return


@pytest.mark.benchmark
Expand All @@ -208,4 +207,14 @@ def test_pycon_query_execution_rustberry():
e = execute(
schema, query,
)
return

@pytest.mark.benchmark
def test_pure_execution_core(benchmark):
query = parse(operation)
benchmark(execute, schema, query)

@pytest.mark.benchmark
def test_pure_execution_rustberry(benchmark):
document = compiler.parse(operation)
query = compiler.gql_core_ast_mirror(document)
benchmark(execute, schema, query)

0 comments on commit 297a407

Please sign in to comment.