Java Data Mining Package - Benchmarking Tool
This project is based on the default Maven JMH archetype described here.
In order to run the benchmarks make sure you have Java 8 as default. Run the following command to know:
java -versionIf you don't have Java 8 installed search how to install in your system and then use the following command to set your default version:
sudo update-alternatives --config javaMake sure you also have a Maven version installed compatible with your Java installation. Check proper output of:
mvn --versionThe profiler used to measure alongside JMH is perf. For its proper execution you'll need to check your running kernel version with:
uname -rOnce you know you can just use apt to install your kernel's specific version (e.g. for 5.3.0-42-generic):
sudo apt install linux-tools-5.3.0-42-genericYou'll need to modify some system flags:
- Change from
3to-1the/proc/sys/kernel/perf_event_paranoidfile - Change from
1to0the/proc/sys/kernel/nmi_watchdogfile
As every JMH project you will need to run the following steps given that you are in the project directory:
mvn clean installThis will create a target/ directory containing the executable file benchmarks.jar. To execute just type:
java -jar target/benchmarks.jar -prof perfFor the assembler alternative use:
java -jar target/benchmarks.jar -prof perfasm