.PHONY: check check-rust check-fixtures check-py check-ts check-go check-rs check-rb bench bench-criterion
check: check-rust check-fixtures
check-rust:
cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
check-fixtures: check-py check-go check-rs check-rb
check-py:
@echo "==> Checking Python fixtures..."
@find benchmarks/fixtures/webapp_py -name '*.py' -exec python3 -m py_compile {} +
@echo " OK"
check-ts:
@echo "==> Checking TypeScript fixtures..."
@cd benchmarks/fixtures/webapp_ts && npx tsc --noEmit --strict --esModuleInterop --skipLibCheck
@echo " OK"
check-go:
@echo "==> Checking Go fixtures..."
@cd benchmarks/fixtures/webapp_go && go build ./...
@echo " OK"
check-rs:
@echo "==> Checking Rust fixtures..."
@cd benchmarks/fixtures/webapp_rs && cargo check 2>/dev/null
@echo " OK"
check-rb:
@echo "==> Checking Ruby fixtures..."
@find benchmarks/fixtures/webapp_rb -name '*.rb' -exec ruby -c {} + > /dev/null
@echo " OK"
bench:
./benchmarks/run.sh
bench-criterion:
cargo bench --bench queries