Benchmark

FIX Antenna .NET Programmer's Guide

Benchmark consists of 2 Windows Forms applications: Sender and Receiver. Sender sends a packet of messages to Receiver to measure FixAntenna performance and latency.

Samples can be started separetely on the same or on different machines in any order. See instructions in the next sections. They can also be started together (on the same PC) using ...\B2BITS\FIX Antenna.NET\vX.X.X.X\samples\samples\Benchmark\Receiver\Release\benchmark.bat file or Start -> All Programs -> B2BITS -> FIX Antenna.Net -> Benchmarks -> Benchmark from start menu.

This topic contains the following sections:

Receiver

You can start Receiver either by running the run.bat file that is located in the ...\B2BITS\FIX Antenna.NET\vX.X.X.X\samples\samples\Benchmark\Receiver\Release folder, where X.X.X.X is FIX Antenna version number, or using the Start menu. In the latter case you can go to Start -> All Programs -> B2BITS -> FIX Antenna.Net -> Benchmarks -> Receiver.

The default Listen Port specified for Receiver is 9106. You can change the port settings in the engine.properties file that is located in the ...\B2BITS\FIX Antenna.NET\vX.X.X.X\samples\samples\Benchmark\Receiver\Release folder.

When you start Receiver it:

  • creates a session;
  • waits for incoming messages.

Benchmark:Receiver window has a simple interface - it is an event log, each record corresponding to one event and consistng of the event time, name and description.

Sender

You can start Sender either by running the run.bat file that is located in the ...\B2BITS\FIX Antenna.NET\vX.X.X.X\samples\samples\Benchmark\Sender\Release folder, where X.X.X.X is FIX Antenna version number, or using the Start menu. In the latter case you can go to Start -> All Programs -> B2BITS -> FIX Antenna.Net -> Benchmarks -> Sender.

The default Listen Port specified for Receiver is 9106. You can change the port settings in the engine.properties file that is located in the ...\B2BITS\FIX Antenna.NET\vX.X.X.X\samples\samples\Benchmark\Receiver\Release folder.

You can copy any FIX message you want to the Message To Be Sent box or open the file with a preset message by clicking the "..." button on the right. Specify the number of sessions you want to create and the number of messages to be sent in each session.

Enter the Receiver's host and port.

Click on the Start performance button to start a performance test. During the performance test messages will be sent from Receiver to Sender. Each application will measure its own peformance as far as sending and receiving (and pasring) a message require different time to execute.

Click on the Start latency button to start a latency test. During the latency test each message will be sent from Sender to Receiver and back. Half of the time required for message to do roundtrip will be measured as latency. System will calculate mean latency for a package of messages.

Storage type parameter allows you to select between Persistent and Transient storage types. Persistent storage type allows recovering session and continue previous operations, however it requires more I/O operations with hard drives. Transient storage type allows reaching significantly better performance at the expense of system safety - if the system fails and then starts up again, unsent messages will not be recovered. Thus it is seldom used in production environments.

Benchmark applications

You may want to connect Sender to Receiver, Echo Server or Exchange Emulator. Please refer to .NET Samples IP Configuration Guide topic for what IP ports need to be configured for each of those samples.

If all parameters are specified correctly, the application will test your performance and display the result in the corresponding box in the center of the window.

See Also

Other Resources