Skip to content

Commit e7c7211

Browse files
wthollidayclaude
andcommitted
Run freeverb FFI benchmark in macOS CI
Add a step to the build-macos job that runs benchmark/run-freeverb.sh (3 runs, 10000 iterations) after the LLVM build+test, and posts the results to the GitHub job summary. This exercises lyte_compiler_compile — the xcframework codepath the CLI never touches — on every push. Also: set LIBRARY_PATH in run-freeverb.sh for CI link robustness, and gitignore the built freeverb_bench binary. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ccf047f commit e7c7211

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@ jobs:
7878
LLVM_SYS_180_PREFIX: /opt/homebrew/opt/llvm@18
7979
LIBRARY_PATH: /opt/homebrew/opt/llvm@18/lib
8080
run: cargo test -p lyte -p lyte-cli --features llvm --verbose
81+
- name: Run freeverb FFI benchmark
82+
env:
83+
LLVM_SYS_180_PREFIX: /opt/homebrew/opt/llvm@18
84+
LIBRARY_PATH: /opt/homebrew/opt/llvm@18/lib
85+
run: |
86+
./benchmark/run-freeverb.sh 3 10000 | tee freeverb_output.txt
87+
- name: Post freeverb results to job summary
88+
if: always()
89+
run: |
90+
echo '## Freeverb FFI Benchmark (macOS ARM64, LLVM)' >> $GITHUB_STEP_SUMMARY
91+
echo '```' >> $GITHUB_STEP_SUMMARY
92+
cat freeverb_output.txt >> $GITHUB_STEP_SUMMARY
93+
echo '```' >> $GITHUB_STEP_SUMMARY
8194
- name: Install x86_64 Homebrew
8295
# The xcframework's macOS x86_64 slice is built with cross-compiled
8396
# LLVM, which requires a native x86_64 llvm-config + libs. Install

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ benchmark/fft_c_o2
3030
benchmark/fft_c_o3
3131
benchmark/sort_c_o2
3232
benchmark/sort_c_o3
33+
benchmark/freeverb_bench
3334

3435
vscode-lyte/node_modules/
3536

benchmark/run-freeverb.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ if [ -z "$LLVM_PREFIX" ] || [ ! -d "$LLVM_PREFIX" ]; then
3232
exit 1
3333
fi
3434
export LLVM_SYS_180_PREFIX="$LLVM_PREFIX"
35+
export LIBRARY_PATH="${LIBRARY_PATH:+$LIBRARY_PATH:}$LLVM_PREFIX/lib"
3536

3637
echo "Building liblyte.dylib (release, --features llvm)..."
3738
cargo build --release --features llvm --lib --quiet

0 commit comments

Comments
 (0)