Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'
This commit is contained in:
57
vendor/ruvector/examples/exo-ai-2025/benches/run_benchmarks.sh
vendored
Executable file
57
vendor/ruvector/examples/exo-ai-2025/benches/run_benchmarks.sh
vendored
Executable file
@@ -0,0 +1,57 @@
|
||||
#!/usr/bin/env bash
|
||||
# EXO-AI 2025 Benchmark Runner
|
||||
# Performance analysis suite for cognitive substrate
|
||||
|
||||
set -e
|
||||
|
||||
PROJECT_ROOT="/home/user/ruvector/examples/exo-ai-2025"
|
||||
RESULTS_DIR="$PROJECT_ROOT/target/criterion"
|
||||
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
echo "======================================"
|
||||
echo "EXO-AI 2025 Performance Benchmarks"
|
||||
echo "======================================"
|
||||
echo ""
|
||||
|
||||
# Check if crates compile first
|
||||
echo "Step 1: Checking crate compilation..."
|
||||
if cargo check --benches; then
|
||||
echo "✓ All crates compile successfully"
|
||||
else
|
||||
echo "✗ Compilation errors detected. Please fix before benchmarking."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Step 2: Running benchmark suites..."
|
||||
echo ""
|
||||
|
||||
# Run all benchmarks
|
||||
echo "→ Running Manifold benchmarks..."
|
||||
cargo bench --bench manifold_bench
|
||||
|
||||
echo ""
|
||||
echo "→ Running Hypergraph benchmarks..."
|
||||
cargo bench --bench hypergraph_bench
|
||||
|
||||
echo ""
|
||||
echo "→ Running Temporal benchmarks..."
|
||||
cargo bench --bench temporal_bench
|
||||
|
||||
echo ""
|
||||
echo "→ Running Federation benchmarks..."
|
||||
cargo bench --bench federation_bench
|
||||
|
||||
echo ""
|
||||
echo "======================================"
|
||||
echo "Benchmark Complete!"
|
||||
echo "======================================"
|
||||
echo ""
|
||||
echo "Results saved to: $RESULTS_DIR"
|
||||
echo "HTML reports available at: $RESULTS_DIR/report/index.html"
|
||||
echo ""
|
||||
echo "To compare against baseline:"
|
||||
echo " cargo bench -- --save-baseline initial"
|
||||
echo " cargo bench -- --baseline initial"
|
||||
echo ""
|
||||
Reference in New Issue
Block a user