This is a benchmarking tool for the Distant Horizons mod,
meant to be used for the Distant Horizons Community Benchmarks.
The program automatically runs pregeneration tasks using the Distant Horizons server functionality on a set of seeds and collects the results in a csv.
This project is in no way affiliated with the developers of Distant Horizons.
The config file is named dh-benchmark.toml
and is located in the same directory as the JAR file. It gets generated the first time the JAR is run.
- Install Java
Make sure you have JDK 21 installed. You can download it from the Adoptium website, or use a package manager like sdkman (Linux) or brew (MacOS). - Download the JAR File
Download the latest JAR file from the releases page - Run the JAR File
Open a terminal and navigate to the directory where you downloaded the JAR file. Then run:java -jar DH-Autobenchmark-x.x.jar
- Follow the Instructions
The application will guide you through the process of running the benchmark. - View Results
After the benchmark is complete, you can view the results in thebenchmark-results.csv
. - Hardware Information
Run the following command to append hardware information to the result file:If you are on Linux, you need to run this command withjava -jar DH-Autobenchmark-x.x.jar --collect-hardware-info
sudo
to collect hardware information:sudo java -jar DH-Autobenchmark-x.x.jar --collect-hardware-info
The config file is named dh-benchmark.toml
and is located in the same directory as the script. It gets generated the first time the script is run, but the script will ask if you want to edit it.
- Install screen
Make sure you havescreen
installed. You can install it using your package manager.
Debian/Ubuntu:Fedora:sudo apt install screen
On Arch, due to a bug you will have to downgradesudo dnf install screen
screen
:Selectsudo pacman -S screen downgrade sudo downgrade screen
4.9.1
and then selecty
when it asks to add it to the IgnorePkg. - Download the Bash Script
Download thedh-autobenchmark.sh
script from the releases page - Make the Script Executable
Open a terminal and navigate to the directory where you downloaded the script. Then run:chmod +x dh-autobenchmark.sh
- Run the Script
Execute the script with the following command:./dh-autobenchmark.sh
- Follow the Instructions
The application will guide you through the process of running the benchmark. - Collect Hardware Information
Run the following command to collect the hardware information, if needed:Note: Some commands require elevated privileges to correctly collect the information../dh-autobenchmark.sh -h
Make sure you are logged in with a user that has sudo permissions.
- Install Java
Make sure you have JDK 21 installed. You can download it from the Adoptium website, or use a package manager like sdkman or brew. - Clone the Repository
Open a terminal and run the following command to clone the repository:git clone https://github.com/Skillnoob/DH-Autobenchmark.git
- Navigate to the Project Directory
Change to the project directory:cd DH-Autobenchmark
- Build the Project
Use Gradle to build the project:On Windows, use:./gradlew build
gradlew.bat build
- Run the Application
After building, you can find the jar inbuild/libs/
. To run the application, use:java -jar build/libs/DH-Autobenchmark-x.x.jar