Skip to content

Commit 746c940

Browse files
committed
Add steps to generate and upload NumPy benchmark report
1 parent bd50caf commit 746c940

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,18 @@ jobs:
111111
timeout-minutes: 20
112112
working-directory: build/benchmark
113113
run: ./benchmark_xtensor --benchmark_filter='(add_|multiply_|sin_|exp_|sum_axis[01]_)'
114+
115+
- name: Generate NumPy benchmark markdown report
116+
timeout-minutes: 20
117+
working-directory: build
118+
run: cmake --build . --target xbenchmark_numpy_report
119+
120+
- name: Publish NumPy benchmark markdown summary
121+
run: cat build/xtensor_numpy_report.md >> "$GITHUB_STEP_SUMMARY"
122+
123+
- name: Upload NumPy benchmark markdown
124+
uses: actions/upload-artifact@v4
125+
with:
126+
name: xtensor-numpy-benchmark-report
127+
path: build/xtensor_numpy_report.md
128+
if-no-files-found: error

0 commit comments

Comments
 (0)