Skip to content

Commit e4c4ebb

Browse files
committed
fix: build instr and walltime
1 parent 7c320bb commit e4c4ebb

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/codspeed.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ jobs:
3333

3434
- name: Build the benchmark target(s)
3535
run: |
36+
just build-instrumentation
3637
just run
37-
38+
3839
- name: Run the benchmarks
3940
uses: CodSpeedHQ/action@v3
4041
with:
@@ -65,8 +66,10 @@ jobs:
6566

6667
- name: Build the benchmark target(s)
6768
run: |
69+
just build-walltime
6870
just run
6971
72+
7073
- name: Run the benchmarks
7174
uses: CodSpeedHQ/action@v3
7275
with:

Justfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
clean:
22
rm -rf build
33

4-
run: build
4+
run:
55
./build/cv-bench
66

77
build:
88
mkdir -p build
99
cd build && cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
1010
cd build && ninja -j16
1111

12+
build-instrumentation:
13+
mkdir -p build
14+
cd build && cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCODSPEED_MODE=instrumentation ..
15+
cd build && ninja -j16
16+
17+
build-walltime:
18+
mkdir -p build
19+
cd build && cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCODSPEED_MODE=walltime ..
20+
cd build && ninja -j16
21+
1222
@fmt:
1323
clang-format -i src/*.cpp

0 commit comments

Comments
 (0)