This module contains a simple tool to generate data sets for performance testing. It generates three distinct media types: xml, json and plain text, each in a variety of predefined data set sizes (1kB, 5kB, 10kB, 1MB and optionally 1GB).

The generation of the largest files (1GB) is disabled by default to save disk space and shorten the generation time. To enable it, change the value of the

GENERATE_ALSO_GIGABYTE_DATASETS
constant in the
TestDataGeneratorApp
class to true.

Running the Example

Run the example as follows:

mvn clean compile exec:java

You can tweak the values of several constants in the

TestDataGeneratorApp
class before launching the generation. For more information, please see the javadocs. The above command launches a Grizzly server with the generation server-side app and runs a client with predefined parameters against it.