-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-benchmark.bat
More file actions
30 lines (26 loc) · 962 Bytes
/
Copy pathrun-benchmark.bat
File metadata and controls
30 lines (26 loc) · 962 Bytes
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
@echo off
setlocal
chcp 65001 > nul
cd /d "%~dp0"
set "MAVEN_OPTS=--enable-native-access=ALL-UNNAMED -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"
echo ===================================================
echo Building FastImage ^& JMH Benchmarks Uber-Jar
echo ===================================================
call mvn -q clean install -DskipTests 2>nul
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] FastImage install failed!
pause
exit /b %ERRORLEVEL%
)
cd examples\Benchmark
call mvn -q clean package 2>nul
if %ERRORLEVEL% NEQ 0 (
echo [ERROR] Benchmark packaging failed!
pause
exit /b %ERRORLEVEL%
)
echo ===================================================
echo Running JMH Benchmarks (Throughput: ops/ms)
echo ===================================================
java --enable-native-access=ALL-UNNAMED "-Djava.library.path=..\..\build;build;src\main\resources\native" -jar target\benchmarks.jar -f 1 -wi 2 -i 3 -tu ms -bm thrpt
pause