Skip to content

Commit dc77eb5

Browse files
committed
Ensure benches are run.
1 parent 66c0c43 commit dc77eb5

File tree

1 file changed

+142
-1
lines changed

1 file changed

+142
-1
lines changed

.github/workflows/bench.yml

Lines changed: 142 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
submodules: recursive
1919
- uses: dtolnay/rust-toolchain@stable
2020

21+
# VERSION/DIAGNOSTICS
22+
2123
- if: matrix.os == 'ubuntu-latest'
2224
name: Get Linux CPU Info
2325
run: cat /proc/cpuinfo
@@ -37,11 +39,150 @@ jobs:
3739
- run: cargo --version
3840
- run: cmake --version
3941

42+
# RUST
43+
4044
# TODO: Add the rust stuff right here
41-
- run: cd extras/simple-bench
45+
- run: |
46+
cd extras/simple-bench
47+
cargo build --release
48+
name: Build Rust
49+
50+
- run: |
51+
cd extras/simple-bench
52+
cargo run --release -- file ext/data/canada.txt
53+
name: Bench Canada Rust
54+
shell: bash
55+
56+
- run: |
57+
cd extras/simple-bench
58+
cargo run --release -- file ext/data/mesh.txt
59+
name: Bench Mesh Rust
60+
shell: bash
61+
62+
- run: |
63+
cd extras/simple-bench
64+
cargo run --release -- random uniform
65+
name: Bench Uniform Rust
66+
shell: bash
67+
68+
- run: |
69+
cd extras/simple-bench
70+
cargo run --release -- random one_over_rand32
71+
name: Bench 1/Rand32 Rust
72+
shell: bash
73+
74+
- run: |
75+
cd extras/simple-bench
76+
cargo run --release -- random simple_uniform32
77+
name: Bench Simple Uniform 32 Rust
78+
shell: bash
79+
80+
- run: |
81+
cd extras/simple-bench
82+
cargo run --release -- random simple_int32
83+
name: Bench Simple Int 32 Rust
84+
shell: bash
85+
86+
- run: |
87+
cd extras/simple-bench
88+
cargo run --release -- random simple_int64
89+
name: Bench Simple Int 64 Rust
90+
shell: bash
91+
92+
- run: |
93+
cd extras/simple-bench
94+
cargo run --release -- random int_e_int
95+
name: Bench Int e Int Rust
96+
shell: bash
97+
98+
- run: |
99+
cd extras/simple-bench
100+
cargo run --release -- random int_e_int
101+
name: Bench Int e Int Rust
102+
shell: bash
103+
104+
- run: |
105+
cd extras/simple-bench
106+
cargo run --release -- random bigint_int_dot_int
107+
name: Bench Big Int.Int Rust
108+
shell: bash
109+
110+
- run: |
111+
cd extras/simple-bench
112+
cargo run --release -- random big_ints
113+
name: Bench Big Ints Rust
114+
shell: bash
115+
116+
# C++
42117

43118
- run: |
44119
cd extras/simple-bench/ext
45120
cmake -B build .
46121
cmake --build build --config Release
47122
name: Build C/C++
123+
124+
- run: |
125+
cd extras/simple-bench/ext
126+
build/benchmarks/benchmark -f data/canada.txt
127+
name: Bench Canada C/C++
128+
shell: bash
129+
130+
- run: |
131+
cd extras/simple-bench/ext
132+
build/benchmarks/benchmark -f data/mesh.txt
133+
name: Bench Mesh C/C++
134+
shell: bash
135+
136+
- run: |
137+
cd extras/simple-bench/ext
138+
build/benchmarks/benchmark -m uniform
139+
name: Bench Uniform C/C++
140+
shell: bash
141+
142+
- run: |
143+
cd extras/simple-bench/ext
144+
build/benchmarks/benchmark -m one_over_rand32
145+
name: Bench 1/Rand32 C/C++
146+
shell: bash
147+
148+
- run: |
149+
cd extras/simple-bench/ext
150+
build/benchmarks/benchmark -m simple_uniform32
151+
name: Bench Simple Uniform 32 C/C++
152+
shell: bash
153+
154+
- run: |
155+
cd extras/simple-bench/ext
156+
build/benchmarks/benchmark -m simple_int32
157+
name: Bench Simple Int 32 C/C++
158+
shell: bash
159+
160+
- run: |
161+
cd extras/simple-bench/ext
162+
build/benchmarks/benchmark -m simple_int64
163+
name: Bench Simple Int 64 C/C++
164+
shell: bash
165+
166+
- run: |
167+
cd extras/simple-bench/ext
168+
build/benchmarks/benchmark -m int_e_int
169+
name: Bench Int e Int C/C++
170+
shell: bash
171+
172+
- run: |
173+
cd extras/simple-bench/ext
174+
build/benchmarks/benchmark -m int_e_int
175+
name: Bench Int e Int C/C++
176+
shell: bash
177+
178+
- run: |
179+
cd extras/simple-bench/ext
180+
build/benchmarks/benchmark -m bigint_int_dot_int
181+
name: Bench Big Int.Int C/C++
182+
shell: bash
183+
184+
- run: |
185+
cd extras/simple-bench/ext
186+
build/benchmarks/benchmark -m big_ints
187+
name: Bench Big Ints C/C++
188+
shell: bash

0 commit comments

Comments
 (0)