Skip to content

Commit e61d56a

Browse files
authored
78 Extract performance profiling cli. (#88)
* Extract performance profiling cli. * Write benchmarking and profiling outputs to files and upload artifact in gh-action. * Add profiling and benchmarks to checks gh-workflow. * Add debug print. * Fix upload-artifact for profiling and benchmarks. * Fix upload-artifact for profiling and benchmarks. * Fix running benchmarks/profling. * Fix running benchmarks/profling. * Try debugging all examples. * Try debugging all examples. * Try debugging all examples. * Try debugging all examples. * Try debugging all examples. * Try debugging all examples. * Try debugging all examples. * Inline flatland.utils.Timer. * Fix click cli. * Get rid of timing only. * Add flatland_performance_profiling.ipynb. * Get rid of Timer class. * Finalize figures.
1 parent de84ae8 commit e61d56a

14 files changed

+569
-180
lines changed

.github/workflows/checks.yml

+20
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,23 @@ jobs:
8585
- name: Run examples
8686
run: tox run -e examples
8787

88+
profiling:
89+
runs-on: ubuntu-22.04
90+
steps:
91+
- uses: actions/checkout@v4
92+
- name: Set up Python
93+
uses: actions/setup-python@v5
94+
with:
95+
python-version: "3.10"
96+
- name: Install tox
97+
run: |
98+
python -m pip install --upgrade pip
99+
pip install tox tox-gh-actions
100+
- name: Run profiling
101+
run: tox run -e profiling
102+
- uses: actions/upload-artifact@v4
103+
with:
104+
name: upload-profiling-results
105+
path: .tox/profiling/log
106+
if-no-files-found: error
107+

.github/workflows/main.yml

+4-20
Original file line numberDiff line numberDiff line change
@@ -101,27 +101,11 @@ jobs:
101101
pip install tox tox-gh-actions
102102
- name: Run profiling
103103
run: tox run -e profiling
104-
105-
benchmarks:
106-
runs-on: ubuntu-22.04
107-
steps:
108-
- uses: actions/checkout@v4
109-
- name: Set up Python
110-
uses: actions/setup-python@v5
104+
- uses: actions/upload-artifact@v4
111105
with:
112-
python-version: "3.10"
113-
- name: Download episodes
114-
run: |
115-
wget "https://data.flatland.cloud/trajectories/FLATLAND_BENCHMARK_EPISODES_FOLDER.zip" -O FLATLAND_BENCHMARK_EPISODES_FOLDER.zip
116-
mkdir -p episodes
117-
unzip FLATLAND_BENCHMARK_EPISODES_FOLDER -d episodes
118-
working-directory: ${{ github.workspace }}
119-
- name: Install tox
120-
run: |
121-
python -m pip install --upgrade pip
122-
pip install tox tox-gh-actions
123-
- name: Run benchmarks
124-
run: tox run -e benchmarks
106+
name: upload-profiling-results
107+
path: .tox/profiling/log
108+
if-no-files-found: error
125109

126110
publish:
127111
if: ${{ false }} # disabled until decided when it should run exactly

benchmarks/benchmark_all_examples.py

-39
This file was deleted.

0 commit comments

Comments
 (0)