-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-benchmark.bat
More file actions
27 lines (21 loc) · 1.19 KB
/
Copy pathrun-benchmark.bat
File metadata and controls
27 lines (21 loc) · 1.19 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
@echo off
setlocal enabledelayedexpansion
chcp 65001 >nul
cd /d "%~dp0"
echo ================================================================================
echo FastGhostMouse - Official JMH Performance Benchmark
echo ================================================================================
echo.
echo [1/3] Building Main Project (FastGhostMouse)...
call mvn clean install -DskipTests -q
if %ERRORLEVEL% NEQ 0 ( echo [ERROR] Main build failed. & pause & exit /b %ERRORLEVEL% )
powershell -NoProfile -Command "Unblock-File -Path '%USERPROFILE%\.fastcore\native\fastghostmouse\*', '%~dp0build\*', '%~dp0src\main\resources\*' -ErrorAction SilentlyContinue" >nul 2>&1
echo [2/3] Building Benchmark Uber-JAR...
cd examples\Benchmark
call mvn clean package -DskipTests -q
if %ERRORLEVEL% NEQ 0 ( echo [ERROR] Benchmark build failed. & cd ..\.. & pause & exit /b %ERRORLEVEL% )
echo [3/3] Running Official JMH Benchmarks for FastGhostMouse...
java --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow -Djmh.ignoreLock=true "-Djava.library.path=..\..\src\main\resources\native;..\..\target\classes\native" -jar target\benchmarks.jar -f 1 -wi 2 -i 3 -tu ms -bm thrpt
cd ..\..
echo.
pause