Run ps to see the top CPU eaters #16
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: Benchmark | |
on: | |
push: | |
jobs: | |
macos: | |
name: "Run" | |
strategy: | |
fail-fast: false | |
matrix: | |
image: ["sonoma-xcode:15.2", "runner:sonoma"] | |
runs-on: ["ghcr.io/cirruslabs/macos-${{ matrix.image }}", "low-priority"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Xcode Select Version | |
uses: mobiledevops/xcode-select-version-action@v1 | |
with: | |
xcode-select-version: 15.2 | |
- name: macOS version | |
run: sw_vers | |
- name: Xcodes list | |
run: xcodes installed | |
- name: Uptime | |
run: uptime | |
- name: Check xclogparser | |
run: ./xclogparser-0.23.8 --help | |
- name: Generate Report Name | |
run: echo "REPORT_NAME=$(echo ${{ matrix.image }} | sed 's/:/-/g')" >> $GITHUB_ENV | |
- name: Run benchmark | |
run: sh benchmark.sh | |
- name: Run ps | |
run: ps axo pid,time,comm | sort -r -k2 | head -n 50 | |
- name: Save report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "${{ env.REPORT_NAME }}.json" | |
path: "${{ env.REPORT_NAME }}.json" |