Skip to content

Ensure benches are run. #6

Ensure benches are run.

Ensure benches are run. #6

Workflow file for this run

name: Bench
# TODO: Change back to dispatch
on:
[push, pull_request, workflow_dispatch]
jobs:
bench:
name: Bench ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
# VERSION/DIAGNOSTICS
- if: matrix.os == 'ubuntu-latest'
name: Get Linux CPU Info
run: cat /proc/cpuinfo
shell: bash
- if: matrix.os == 'macos-latest'
name: Get macOS CPU Info
run: sysctl -a | grep cpu
shell: bash
- if: matrix.os == 'windows-latest'
name: Get Windows CPU Info
run: wmic cpu list /format:list
shell: bash
# TODO: Restore later
- run: cargo --version
- run: cmake --version
# RUST
# TODO: Add the rust stuff right here
- run: |
cd extras/simple-bench
cargo build --release
name: Build Rust
- run: |
cd extras/simple-bench
cargo run --release -- file ext/data/canada.txt
name: Bench Canada Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- file ext/data/mesh.txt
name: Bench Mesh Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- random uniform
name: Bench Uniform Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- random one_over_rand32
name: Bench 1/Rand32 Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- random simple_uniform32
name: Bench Simple Uniform 32 Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- random simple_int32
name: Bench Simple Int 32 Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- random simple_int64
name: Bench Simple Int 64 Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- random int_e_int
name: Bench Int e Int Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- random int_e_int
name: Bench Int e Int Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- random bigint_int_dot_int
name: Bench Big Int.Int Rust
shell: bash
- run: |
cd extras/simple-bench
cargo run --release -- random big_ints
name: Bench Big Ints Rust
shell: bash
# C++
- run: |
cd extras/simple-bench/ext
cmake -B build .
cmake --build build --config Release
name: Build C/C++
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -f data/canada.txt
name: Bench Canada C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -f data/mesh.txt
name: Bench Mesh C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -m uniform
name: Bench Uniform C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -m one_over_rand32
name: Bench 1/Rand32 C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -m simple_uniform32
name: Bench Simple Uniform 32 C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -m simple_int32
name: Bench Simple Int 32 C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -m simple_int64
name: Bench Simple Int 64 C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -m int_e_int
name: Bench Int e Int C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -m int_e_int
name: Bench Int e Int C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -m bigint_int_dot_int
name: Bench Big Int.Int C/C++
shell: bash
- run: |
cd extras/simple-bench/ext
build/benchmarks/benchmark -m big_ints
name: Bench Big Ints C/C++
shell: bash