|
71 | 71 | RUSTFLAGS: "-C target-cpu=native" |
72 | 72 | run: asv run HEAD^! --machine "github-runner" --show-stderr |
73 | 73 |
|
| 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 | + |
74 | 120 | # 4. GENERATE WEBSITE |
75 | 121 | - name: Generate HTML |
76 | 122 | working-directory: microbiorust-py |
|
0 commit comments