Performance and Benchmarking

Hazelcast Simulator can use probes to record throughput and latency while running a test. Hazelcast Simulator can inject a probe into a test, and then it is the responsibility of the test to notify the probe about the start/end of each action.

There are two classes of probes:

  • SimpleProbe: Counts the number of events. It does not have a notion of start/end.
  • IntervalProbe: Differentiates between start/end of an action. Used to measure latency.

How to use probes is explained below.

  1. Define a probe as a test property. Hazelcast Simulator will inject the appropriate probe implementation.

    public class IntIntMapTest {
     private static final ILogger log = Logger.getLogger(IntIntMapTest.class);
     private enum Operation {
     // Probes will be injected by Hazelcast Simulator
     public IntervalProbe intervalProbe;
     public IntervalProbe anotherIntervalProbe;
     public SimpleProbe simpleProbe;
  2. Use the probe in your test code.

  3. Configure the probe in your file.


The configuration format is probe-<nameOfField>=<type>, where nameOfField is the name you choose for the probe, and type is the type of probe. Please keep in mind that this format is likely to change in future versions of Hazelcast Simulator.

A probe of class IntervalProbe can have the following types.

  • latency: Measures the latency distribution.
  • maxLatency: Records the highest latency. Unlike the previous probe, it records only the single highest latency measured, not a full distribution.
  • hdr: Same as latency, but it uses HdrHistogram under the hood. This will replace the latency probe in future versions of Simulator.
  • disabled: Dummy probe. It does not record anything.

A probe of class SimpleProbe can have the following implementations.

  • throughput: Measures throughput.
  • disabled: Dummy probe. It does not record anything.

It is important to understand that the class of a probe does not mandate what the probe is actually measuring. Therefore, the tests just know a class of probe, but they do not know if the probe generates, for example, a full latency histogram or just a maximum recorded latency. This detail must be implemented from a point of view of a test.