Locust4j is a load generator for locust, written in Java. It's inspired by boomer and nomadacris.
It's a benchmarking library, not a general purpose tool. To use it, you must implement test scenarios by yourself.
Write user test scenarios in Java
Because it's written in Java, you can use all the things in the Java Ecosystem.
Thread-based concurrency
Locust4j uses threadpool to execute your code with low overhead.
git clone https://github.com/myzhan/locust4j
cd locust4j
mvn package
mvn install
Add this to your Maven project's pom.xml.
<dependency>
<groupId>com.github.myzhan</groupId>
<artifactId>locust4j</artifactId>
<version>LATEST</version>
</dependency>
See Main.java.
This file represents all the exposed APIs of Locust4j.
Open source licensed under the MIT license (see LICENSE file for details).