Skip to content

Commit afba600

Browse files
authored
Merge pull request #104 from linksplatform/issue-103-3cc61f722359
Add Rust implementation of SQLite vs Doublets benchmark
2 parents 3288dc9 + 8a08817 commit afba600

15 files changed

Lines changed: 2184 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: main
6+
paths:
7+
- 'rust/**'
8+
- '.github/workflows/rust.yml'
9+
pull_request:
10+
paths:
11+
- 'rust/**'
12+
- '.github/workflows/rust.yml'
13+
14+
env:
15+
CARGO_TERM_COLOR: always
16+
RUST_BACKTRACE: 1
17+
18+
defaults:
19+
run:
20+
working-directory: rust
21+
22+
jobs:
23+
test:
24+
name: Test (${{ matrix.os }})
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
os: [ubuntu-latest, macos-latest, windows-latest]
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: Setup Rust
34+
uses: dtolnay/rust-toolchain@master
35+
with:
36+
toolchain: nightly-2022-08-22
37+
38+
- name: Cache cargo registry
39+
uses: actions/cache@v4
40+
with:
41+
path: |
42+
~/.cargo/registry
43+
~/.cargo/git
44+
rust/target
45+
key: ${{ runner.os }}-cargo-${{ hashFiles('rust/Cargo.lock') }}
46+
restore-keys: |
47+
${{ runner.os }}-cargo-
48+
49+
- name: Run tests
50+
run: cargo test --release

rust/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target/
2+
*.db
3+
*.links

0 commit comments

Comments
 (0)