Skip to content

Commit

Permalink
Re-enable benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Sep 12, 2024
1 parent 1d2917e commit 26c52d7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
working-directory: libs/langgraph
steps:
- uses: actions/checkout@v4
# with:
# ref: main
with:
ref: main
- name: Set up Python 3.11 + Poetry ${{ env.POETRY_VERSION }}
uses: "./.github/actions/poetry_setup"
with:
Expand Down
60 changes: 30 additions & 30 deletions libs/langgraph/bench/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,36 @@ async def run(graph: Pregel, input: dict, config: Optional[dict]):
},
None,
),
# (
# "fanout_to_subgraph_10x_checkpoint",
# fanout_to_subgraph().compile(checkpointer=MemorySaver()),
# {
# "subjects": [
# random.choices("abcdefghijklmnopqrstuvwxyz", k=1000) for _ in range(10)
# ]
# },
# {"configurable": {"thread_id": "1"}},
# ),
# (
# "fanout_to_subgraph_100x",
# fanout_to_subgraph().compile(checkpointer=None),
# {
# "subjects": [
# random.choices("abcdefghijklmnopqrstuvwxyz", k=1000) for _ in range(100)
# ]
# },
# None,
# ),
# (
# "fanout_to_subgraph_100x_checkpoint",
# fanout_to_subgraph().compile(checkpointer=MemorySaver()),
# {
# "subjects": [
# random.choices("abcdefghijklmnopqrstuvwxyz", k=1000) for _ in range(100)
# ]
# },
# {"configurable": {"thread_id": "1"}},
# ),
(
"fanout_to_subgraph_10x_checkpoint",
fanout_to_subgraph().compile(checkpointer=MemorySaver()),
{
"subjects": [
random.choices("abcdefghijklmnopqrstuvwxyz", k=1000) for _ in range(10)
]
},
{"configurable": {"thread_id": "1"}},
),
(
"fanout_to_subgraph_100x",
fanout_to_subgraph().compile(checkpointer=None),
{
"subjects": [
random.choices("abcdefghijklmnopqrstuvwxyz", k=1000) for _ in range(100)
]
},
None,
),
(
"fanout_to_subgraph_100x_checkpoint",
fanout_to_subgraph().compile(checkpointer=MemorySaver()),
{
"subjects": [
random.choices("abcdefghijklmnopqrstuvwxyz", k=1000) for _ in range(100)
]
},
{"configurable": {"thread_id": "1"}},
),
)


Expand Down

0 comments on commit 26c52d7

Please sign in to comment.