Compare commits
2 Commits
09c74c1a2e
...
8b168fa727
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b168fa727 | ||
| 2b540840b1 |
@@ -4,6 +4,12 @@ on:
|
||||
pull_request:
|
||||
branches: ["**"]
|
||||
|
||||
push:
|
||||
branches: ["**"]
|
||||
# Avoid triggering on timing results auto-commits
|
||||
paths-ignore:
|
||||
- 'unit-tests/timing-results/**'
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -11,11 +17,14 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies (CMake + Ninja + build tools)
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y cmake ninja-build build-essential time
|
||||
sudo apt-get install -y cmake ninja-build build-essential time git
|
||||
|
||||
- name: Configure project with CMake
|
||||
run: cmake -G Ninja -S . -B build/
|
||||
@@ -34,13 +43,29 @@ jobs:
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Run matrix-timing-tests with per-test timing output
|
||||
- name: Run matrix-timing-tests with per-test timing output and save results
|
||||
run: |
|
||||
mkdir -p unit-tests/timing-results
|
||||
if [ -x build/unit-tests/matrix-timing-tests ]; then
|
||||
echo "Running matrix-timing-tests with timing"
|
||||
# Enable Catch2 timing output via command-line flag -d yes
|
||||
# Wrap with /usr/bin/time for overall runtime measurement and resource usage
|
||||
/usr/bin/time -v build/unit-tests/matrix-timing-tests -d yes
|
||||
/usr/bin/time -v build/unit-tests/matrix-timing-tests -d yes &> unit-tests/timing-results/matrix-timing-tests.txt
|
||||
else
|
||||
echo "matrix-timing-tests executable not found or not executable"
|
||||
exit 1
|
||||
fi
|
||||
- name: Commit and push timing results
|
||||
run: |
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
# Save current branch name
|
||||
BRANCH_NAME=$(echo "${GITHUB_REF##refs/heads/}")
|
||||
|
||||
git add unit-tests/timing-results/matrix-timing-tests.txt
|
||||
if git diff --quiet --cached; then
|
||||
echo "No changes to commit"
|
||||
else
|
||||
git commit -m "Update matrix-timing-tests timings [skip ci]"
|
||||
git push origin HEAD:$BRANCH_NAME
|
||||
fi
|
||||
|
||||
|
||||
56
unit-tests/timing-results/matrix-timing-tests.txt
Normal file
56
unit-tests/timing-results/matrix-timing-tests.txt
Normal file
@@ -0,0 +1,56 @@
|
||||
Randomness seeded to: 1927326235
|
||||
0.181 s: Addition
|
||||
0.181 s: Timing Tests
|
||||
0.181 s: Subtraction
|
||||
0.181 s: Timing Tests
|
||||
1.916 s: Multiplication
|
||||
1.916 s: Timing Tests
|
||||
0.129 s: Scalar Multiplication
|
||||
0.129 s: Timing Tests
|
||||
0.177 s: Element Multiply
|
||||
0.177 s: Timing Tests
|
||||
0.178 s: Element Divide
|
||||
0.178 s: Timing Tests
|
||||
0.156 s: Minor Matrix
|
||||
0.157 s: Timing Tests
|
||||
0.105 s: Determinant
|
||||
0.105 s: Timing Tests
|
||||
0.419 s: Matrix of Minors
|
||||
0.419 s: Timing Tests
|
||||
0.110 s: Invert
|
||||
0.110 s: Timing Tests
|
||||
0.125 s: Transpose
|
||||
0.125 s: Timing Tests
|
||||
0.192 s: Normalize
|
||||
0.192 s: Timing Tests
|
||||
0.006 s: GET ROW
|
||||
0.006 s: Timing Tests
|
||||
0.283 s: GET COLUMN
|
||||
0.283 s: Timing Tests
|
||||
===============================================================================
|
||||
test cases: 1 | 1 passed
|
||||
assertions: - none -
|
||||
|
||||
Command being timed: "build/unit-tests/matrix-timing-tests -d yes"
|
||||
User time (seconds): 4.14
|
||||
System time (seconds): 0.00
|
||||
Percent of CPU this job got: 99%
|
||||
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:04.16
|
||||
Average shared text size (kbytes): 0
|
||||
Average unshared data size (kbytes): 0
|
||||
Average stack size (kbytes): 0
|
||||
Average total size (kbytes): 0
|
||||
Maximum resident set size (kbytes): 3072
|
||||
Average resident set size (kbytes): 0
|
||||
Major (requiring I/O) page faults: 184
|
||||
Minor (reclaiming a frame) page faults: 169
|
||||
Voluntary context switches: 0
|
||||
Involuntary context switches: 94
|
||||
Swaps: 0
|
||||
File system inputs: 12
|
||||
File system outputs: 1
|
||||
Socket messages sent: 0
|
||||
Socket messages received: 0
|
||||
Signals delivered: 0
|
||||
Page size (bytes): 4096
|
||||
Exit status: 0
|
||||
Reference in New Issue
Block a user