Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ jobs:
run: |
cargo build --verbose
cargo test --verbose
cargo doc --verbose

- name: Test on macOS
if: matrix.os == 'macos'
run: |
cargo build --verbose
cargo test --verbose
cargo doc --verbose

- name: Test on FreeBSD
if: matrix.os == 'freebsd'
Expand All @@ -70,6 +72,7 @@ jobs:
. ~/.cargo/env
cargo build --verbose
cargo test --verbose
cargo doc --verbose

- name: Test on OpenBSD
if: matrix.os == 'openbsd'
Expand All @@ -85,6 +88,7 @@ jobs:
. ~/.cargo/env
cargo build --verbose
cargo test --verbose
cargo doc --verbose

- name: Test on Linux s390x (big-endian)
if: matrix.os == 'linux' && matrix.arch == 's390x'
Expand All @@ -102,6 +106,7 @@ jobs:
source ~/.cargo/env
cargo build --verbose
cargo test --verbose
cargo doc --verbose

- name: Test on Linux RISC-V64
if: matrix.os == 'linux' && matrix.arch == 'riscv64'
Expand All @@ -119,6 +124,7 @@ jobs:
source ~/.cargo/env
cargo build --verbose
cargo test --verbose
cargo doc --verbose

- name: Test on Linux aarch64
if: matrix.os == 'linux' && matrix.arch == 'aarch64'
Expand All @@ -136,6 +142,7 @@ jobs:
source ~/.cargo/env
cargo build --verbose
cargo test --verbose
cargo doc --verbose

- name: Test on Alpine in Docker
if: matrix.os == 'alpine' && matrix.arch == 'x86_64'
Expand All @@ -147,4 +154,5 @@ jobs:
. /root/.cargo/env &&
cargo build --verbose &&
cargo test --verbose
cargo doc --verbose
"
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ repos:
files: \.rs$
pass_filenames: false
always_run: true
- id: cargo-doc
name: Cargo Doc
description: Generate and check Rust documentation
entry: cargo doc --no-deps
language: system
files: \.rs$
pass_filenames: false
always_run: true
- id: cargo-test
name: Cargo Test
description: Run Rust tests
Expand Down
19 changes: 19 additions & 0 deletions fd_benchmarks/warm-cache-no-match.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash


source "prelude.sh"
source "new_prelude.sh"
PATTERN="THISSHOULDNEVERMATCH"
#i dont use gitignore so -HI is equivalent on both tools
COMMAND_FD="fd $PATTERN '$SEARCH_ROOT' -HI"
COMMAND_FIND="fdf $PATTERN '$SEARCH_ROOT' -HI"
OUTPUT_DIR="./bench_results"
mkdir -p "$OUTPUT_DIR"

echo -e "\nRunning benchmarks..."
hyperfine \
--warmup "$WARMUP_COUNT" \
--prepare 'sync; sleep 0.2' \
"$COMMAND_FD" \
"$COMMAND_FIND" \
--export-markdown "$OUTPUT_DIR/results-warm-cache-no-match.md"
19 changes: 19 additions & 0 deletions fd_benchmarks/warm-cache-no-match_home_dir.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash


source "prelude.sh"
source "new_prelude.sh"
PATTERN="THISSHOULDNEVERMATCH"
#i dont use gitignore so -HI is equivalent on both tools
COMMAND_FD="fd $PATTERN '$HOME' -HI"
COMMAND_FIND="fdf $PATTERN '$HOME' -HI"
OUTPUT_DIR="./bench_results"
mkdir -p "$OUTPUT_DIR"

echo -e "\nRunning benchmarks..."
hyperfine \
--warmup "$WARMUP_COUNT" \
--prepare 'sync; sleep 0.2' \
"$COMMAND_FD" \
"$COMMAND_FIND" \
--export-markdown "$OUTPUT_DIR/results-warm-cache-no-match-home.md"
Loading