-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-benchmark.bat
More file actions
49 lines (45 loc) · 1.23 KB
/
Copy pathrun-benchmark.bat
File metadata and controls
49 lines (45 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
chcp 65001 >nul
cd /d "%~dp0"
echo ===============================================================
echo ⚡ FastFileScrape Benchmark
echo Ultra-Fast File Tree ^& Content Scraper
echo ===============================================================
echo.
echo 📦 Building FastFileScrape...
call mvn clean package -q -DskipTests
if %ERRORLEVEL% NEQ 0 (
echo.
echo ❌ Build failed.
pause
exit /b 1
)
echo ✅ Build OK
echo.
echo 🔨 Compiling Benchmark...
if not exist "examples\Benchmark\target\classes" mkdir "examples\Benchmark\target\classes"
call javac --enable-native-access=ALL-UNNAMED ^
-cp "target\FastFileScrape-0.1.0.jar" ^
-d "examples\Benchmark\target\classes" ^
"examples\Benchmark\src\main\java\fastfilescrape\Benchmark.java" 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ❌ Benchmark compile failed.
pause
exit /b 1
)
echo ✅ Compile OK
echo.
echo 🚀 Running Benchmark...
echo.
java --enable-native-access=ALL-UNNAMED ^
-Dfile.encoding=UTF-8 ^
-Dstdout.encoding=UTF-8 ^
-cp "target\FastFileScrape-0.1.0.jar;examples\Benchmark\target\classes" ^
fastfilescrape.Benchmark
if %ERRORLEVEL% NEQ 0 (
echo.
echo ❌ Benchmark failed.
pause
exit /b 1
)
pause