Skip to content

Commit 3b8e4b1

Browse files
committed
Port the parser benchmark
1 parent 0fe1a77 commit 3b8e4b1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/benchmarks/test_parser.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from graphql import parse, DocumentNode
2+
3+
# noinspection PyUnresolvedReferences
4+
from ..fixtures import kitchen_sink_query # noqa: F401
5+
6+
7+
def test_parse_kitchen_sink(benchmark, kitchen_sink_query): # noqa: F811
8+
query = benchmark(lambda: parse(kitchen_sink_query))
9+
assert isinstance(query, DocumentNode)

0 commit comments

Comments
 (0)