Add distributed mode benchmark #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AgentScope Benchmark | |
on: [push, pull_request] | |
permissions: | |
contents: write | |
jobs: | |
bench: | |
permissions: | |
contents: write | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: True | |
matrix: | |
os: [ubuntu-latest] | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: '3.9' | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.9 | |
- name: Install AgentScope | |
run: | | |
pip install -q -e .[distribute] | |
pip install pytest pytest-benchmark | |
- name: Run bench | |
run: | | |
cd examples/distributed_simulation | |
pytest bench.py --benchmark-json output.json | |
cat output.json| jq -r ".benchmarks[] | .stats |