Skip to content

Commit 1c0a238

Browse files
committed
Fixed benchmark function
1 parent b336526 commit 1c0a238

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graphql/execution/tests/test_benchmark.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def resolve_all_ints(root, args, context, info):
2828

2929

3030

31-
def test_big_list_of_ints(benchmark):
31+
def test_big_list_of_ints_base(benchmark):
3232
big_int_list = [x for x in range(5000)]
3333
from ..executor import complete_leaf_value
3434
# def convert_item(i):
@@ -40,6 +40,8 @@ def convert_list():
4040
r.append(GraphQLInt.serialize(i))
4141
return r
4242
benchmark(convert_list)
43+
44+
4345
def test_big_list_of_containers_with_one_field(benchmark):
4446
Container = namedtuple('Container', 'x y z o')
4547

0 commit comments

Comments
 (0)