Java Load Testing Tool for Diffusion
Requirements
- Oracle JDK v.8
- Maven v3.3
- Diffusion v5.9
- Internet access
mvn clean install
java -jar target/benchmark-1.0.0.jar -publish ${server-url} ${user} ${password} -topics some/topic/${message_size}/${updates_per_second}
For example:
java -jar target/benchmark-1.0.0.jar -publish ws://localhost:8080 admin password -topics foo/bar/100/5 foo/bar/100/2
Will create topic foo/bar/100/5
with 100 bytes of string data and update it five times a second. Topic foo/bar/100/2
is created with 100 bytes and updated twice a second. Topic paths not matching this pattern will provoke an error Could not parse topicPath
Placing a finite number of subscribing sessions
java -jar target/benchmark-0.10.0-script-SNAPSHOT.jar -sessions ${server-url} 2 -myTopics ${topics}
For example:
java -jar target/benchmark-0.10.0-script-SNAPSHOT.jar -sessions ws://localhost:8080 2 -myTopics foo/bar/100/1 foo/bar/100/2
Frequently placing and closing (or 'churning') a given number of sessions a second:
java -jar target/benchmark-0.10.0-script-SNAPSHOT.jar -myTopics foo/bar/100/1 /foo/bar/100/2 -sessionRate ws://localhost:8080 1 500