chore: update benchmark suite to include new sorting algorithm tests

This commit is contained in:
2025-12-09 13:07:17 +00:00
parent 70819b2fad
commit 28c2ed7ed5
5 changed files with 352 additions and 16 deletions
+14
View File
@@ -305,6 +305,20 @@ benchmark: test_benchmark
@echo "========================================"
@python3 examples/benchmark.py
@echo ""
@if command -v javac >/dev/null 2>&1; then \
echo "========================================"; \
echo " JAVA (OpenJDK)"; \
echo "========================================"; \
javac examples/20_Benchmark.java -d /tmp; \
java -cp /tmp Benchmark; \
rm -f /tmp/Benchmark.class; \
else \
echo "========================================"; \
echo " JAVA (OpenJDK) - SKIPPED"; \
echo "========================================"; \
echo "Java/JDK not installed. Install with: apt install default-jdk"; \
fi
@echo ""
rava: rava.o $(LEXER_OBJECTS) $(PARSER_OBJECTS) $(TYPES_OBJECTS) $(SEMANTIC_OBJECTS) $(IR_OBJECTS) $(RUNTIME_OBJECTS) $(LOADER_OBJECTS) $(REPL_OBJECTS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lreadline