Skip to content

Commit f705149

Browse files
authored
Update microbiorust-py_benchmarks.yml
adding trial run of eco-ci data
1 parent bc415c7 commit f705149

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/microbiorust-py_benchmarks.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,52 @@ jobs:
7171
RUSTFLAGS: "-C target-cpu=native"
7272
run: asv run HEAD^! --machine "github-runner" --show-stderr
7373

74+
# Measure Rust energy use:
75+
- name: Start Rust Energy measurement
76+
uses: green-coding-solutions/eco-ci-energy-estimation@v4
77+
with:
78+
task: start-measurement
79+
80+
- name: Run Rust benchmarks for energy
81+
working-directory: microbiorust-py
82+
env:
83+
MATURIN_PY_BUILD_ARGS: "--release"
84+
RUSTFLAGS: "-C target-cpu=native"
85+
run: |
86+
asv run HEAD^! --machine "github-runner" --bench "PipelineSuite.time_process-all" --param-match "engine=rust" --show-stderr
87+
88+
- name: Record Rust Energy use
89+
uses: green-coding-solutions/eco-ci-energy-estimation@v4
90+
with:
91+
task: get-measurement
92+
output-file: eco-ci-rust.json
93+
label: 'Rust Implementation'
94+
95+
- name: Start Python energy measurement
96+
uses: green-coding-solutions/eco-ci-energy-estimation@v4
97+
with:
98+
task: start-measurement
99+
100+
- name: Run python benchmarks (for energy estimation)
101+
working-directory: microbiorust-py
102+
env:
103+
MATURIN_PY_BUILD_ARGS: "--release"
104+
RUSTFLAGS: "-C target-cpu=native"
105+
run: |
106+
asv run HEAD^! --machine "github-runner" --bench "PipelineSuite.time_process-all" --param-match "engine=python" --show-stderr
107+
108+
- name: Record Python energy
109+
uses: green-coding-solutions/eco-ci-energy-estimation@v4
110+
with:
111+
task: get-measurement
112+
output-file: eco-ci-python.json
113+
label: 'Python Implementation'
114+
115+
- name: Display energy comparison
116+
uses: green-coding-solutions/eco-ci-energy-estimation@v4
117+
with:
118+
task: display-results
119+
74120
# 4. GENERATE WEBSITE
75121
- name: Generate HTML
76122
working-directory: microbiorust-py

0 commit comments

Comments
 (0)