Skip to content

Commit

Permalink
chore: add parsing only benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwrede committed May 21, 2024
1 parent 28b64c3 commit 4fffa3d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test_parser/benchmarks/test_parsing_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,20 @@ def test_validation_gitlab_query_rustberry_no_mirror():
document = compiler.parse(operation)
validation_success = compiler.validate(document)
query = compiler.gql_core_ast(document)


@pytest.mark.benchmark
def test_parsing_gitlab_query_graphql_core():
query = parse(operation)

@pytest.mark.benchmark
def test_parsing_gitlab_query_rustberry():
document = compiler.parse(operation)
query = compiler.gql_core_ast_mirror(document)
@pytest.mark.benchmark
def test_parsing_gitlab_query_rustberry_no_mirror():
document = compiler.parse(operation)
query = compiler.gql_core_ast(document)



0 comments on commit 4fffa3d

Please sign in to comment.