@@ -35,13 +35,11 @@ jobs:
3535 run : wmic cpu list /format:list
3636 shell : bash
3737
38- # TODO: Restore later
3938 - run : cargo --version
4039 - run : cmake --version
4140
4241 # RUST
4342
44- # TODO: Add the rust stuff right here
4543 - run : |
4644 cd extras/simple-bench
4745 cargo build --release
@@ -50,139 +48,43 @@ jobs:
5048 - run : |
5149 cd extras/simple-bench
5250 cargo run --release -- file ext/data/canada.txt
53- name: Bench Canada Rust
54- shell: bash
55-
56- - run : |
57- cd extras/simple-bench
5851 cargo run --release -- file ext/data/mesh.txt
59- name: Bench Mesh Rust
60- shell: bash
61-
62- - run : |
63- cd extras/simple-bench
6452 cargo run --release -- random uniform
65- name: Bench Uniform Rust
66- shell: bash
67-
68- - run : |
69- cd extras/simple-bench
7053 cargo run --release -- random one_over_rand32
71- name: Bench 1/Rand32 Rust
72- shell: bash
73-
74- - run : |
75- cd extras/simple-bench
7654 cargo run --release -- random simple_uniform32
77- name: Bench Simple Uniform 32 Rust
78- shell: bash
79-
80- - run : |
81- cd extras/simple-bench
8255 cargo run --release -- random simple_int32
83- name: Bench Simple Int 32 Rust
84- shell: bash
85-
86- - run : |
87- cd extras/simple-bench
8856 cargo run --release -- random simple_int64
89- name: Bench Simple Int 64 Rust
90- shell: bash
91-
92- - run : |
93- cd extras/simple-bench
9457 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
10058 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
10659 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
11260 cargo run --release -- random big_ints
113- name: Bench Big Ints Rust
61+ name: Bench Rust
11462 shell: bash
11563
11664 # C++
11765
11866 - run : |
11967 cd extras/simple-bench/ext
120- cmake -B build .
68+ cmake -DCMAKE_BUILD_TYPE=Release - B build .
12169 cmake --build build --config Release
12270 name: Build C/C++
12371
12472 - run : |
12573 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++
74+ if [[ -f build/benchmarks/Release/benchmark.exe ]]; then
75+ exe=build/benchmarks/Release/benchmark.exe
76+ else
77+ exe=build/benchmarks/benchmark
78+ fi
79+ "${exe}" -f data/canada.txt
80+ "${exe}" -f data/mesh.txt
81+ "${exe}" -m uniform
82+ "${exe}" -m one_over_rand32
83+ "${exe}" -m simple_uniform32
84+ "${exe}" -m simple_int32
85+ "${exe}" -m simple_int64
86+ "${exe}" -m int_e_int
87+ "${exe}" -m bigint_int_dot_int
88+ "${exe}" -m big_ints
89+ name: Bench C/C++
18890 shell: bash
0 commit comments