Skip to content

Commit

Permalink
fix?: reduce parallel visitors
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwrede committed Oct 19, 2024
1 parent 25e46e4 commit 5fcdeaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/benchmarks/test_visit.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ def test_visit_all_ast_nodes(benchmark, big_schema_sdl): # noqa: F811
def test_visit_all_ast_nodes_in_parallel(benchmark, big_schema_sdl): # noqa: F811
document_ast = parse(big_schema_sdl)
visitor = DummyVisitor()
parallel_visitor = ParallelVisitor([visitor] * 50)
parallel_visitor = ParallelVisitor([visitor] * 20)
benchmark(lambda: visit(document_ast, parallel_visitor))

0 comments on commit 5fcdeaf

Please sign in to comment.