FIX Antenna Java 2.17.0 Results
Approach
Benchmarks were run against two different versions of FIX Antenna Java (2.15.27 and 2.17.0), against FIX Antenna Java 2.17.0 with different configurations and against FIX Antenna Java 2.27.0 and QuickFIX Java 1.6.3, and the results were compared in order to detect possible regressions.Â
Hardware
FIX Antenna Machine
- Intel(R) Xeon(R) CPU E5-2687W v3 @ 3.10GHz (2 CPU Hyper-Trading Enabled, 20 Cores)
- RAM 128 GB, 2133 MHz
- NIC Solarflare Communications SFC9120 (Firmware-version: 4.2.2.1003 rx1 tx1)
- Linux (CentOS 7.0.1406 kernel 3.10.0-123.el7.x86_64)
- SolarFlare driver version: 4.1.0.6734a
Client Machine
- Intel(R) Xeon(R) CPU E5-2643 v3 @ 3.40GHz (2 CPU Hyper-Trading Enabled, 24 Cores)
- RAM 128 GB, 2133 MHz
- NIC Solarflare Communications SFC9120 (Firmware-version: 4.2.2.1003 rx1 tx1)
- Linux (CentOS 7.0.1406 kernel 3.10.0-123.el7.x86_64)
- SolarFlare driver version: 4.1.0.6734a
Results
FIX Antenna Java 2.17.0Â
Configuration | Properties | Balanced | Optimized | Optimized.onload |
---|---|---|---|---|
Nagle`s algorithm | Yes | No | No | |
Affinity | Â | No | Yes | Yes |
Message validation parameters | validateCheckSum |  ✔ | ||
validateGarbledMessage |  ✔ | |||
Storage type | Persistent | In memory | In memory | |
Queue type | Persistent | In memory | In memory | |
Solarflare OpenOnload | No | No | Yes |
Nagle's algorithm is the algorithm aimed to reduce the number of packets that need to be sent over the network. Nagle's algorithm works by combining a number of small outgoing messages and sending them all at once.
Affinity means that session threads are pinned to the specific CPU core.
Solarflare OpenOnload is the kernel bypass technique by Solarflare that is activated within the test.
The following description helps to choose the most relevant FIX Antenna Java configuration:
- Balanced. It is a good starting point with balanced performance and security. Basic validation options are enabled to prevent corrupted message processing.
- Optimized. It is the configuration aimed at maximum performance. All validation options as well as message persistence are disabled, so it has to be used only in a fully controlled environment. Also, affinity masks are used in this configuration.
- Optimized.onload. The Solarflare OpenOnload technique is activated within the configuration and optimizes the TCP stack. However, the configuration may be applied only if a Solarflare Network interface controller is installed on the machine.
Balanced | Optimized | Optimized.onload | |
---|---|---|---|
Min | 37.9 | 26.2 | 10.5 |
Max | 1894.5 | 1011.8 | 1928.0 |
Average | 45.9 | 28.6 | 11.3 |
50% | 43.9 | 27.7 | 10.9 |
95% | 63.2 | 30.8 | 12.0 |
99% | 72.4 | 52.2 | 13.8 |
FIX Antenna Java 2.17.0 VS FIX Antenna Java 2.15.27
- One acceptor session is configured on the FIX Antenna Java side.
- One initiator session is configured on the client application side.
 The process:
- The client application connects to the FIX Antenna Java and sends 200000 FIX 4.2 messages at a rate of 50000 messages per second.
- FIX Antenna Java receives the messages and responds to the client application with the same message via the same TCP/IP connection (the same session).
- The client application collects the response time histogram.
- The process is repeated for each FIX Antenna Java version.
The response time measured by the client application is the difference between timestamps:
- t1 - timestamp is taken right before sending a message to the socket
- t2 - timestamp is taken right after receiving the same message from the socket (from the FIX Antenna Java)
So the round-trip time formula is: RTT = t2 - t1 and the measurement unit is microseconds.
The test scenario diagram:
The performance of the FIX Antenna Java 2.17.0 release is almost the same as the performance of the FIX Antenna Java 2.15.27 release. There is no performance degradation or improvement.
Performance value slightly differs to the nature of the system used to measure the performance.
The table below contains a single run one-to-one comparison and may have some differences compared to the graphic above.
FIXAJ 2.17.0, usec | FIXAJ 2.15.27, usec | |
---|---|---|
Min | 26.2 | 27.2 |
Max | 1011.8 | 1200.7 |
Average | 28.6 | 31.1 |
50% | 27.7 | 29.5 |
95% | 30.8 | 39.3 |
99% | 52.2 | 57.6 |
FIX Antenna Java 2.17.0 VS QuickFIX Java 1.6.3
The benchmark code was ported to QuickFIXJ:
FIXAntenna Java Balanced | FIXAntenna Java Optimized | QuickFIXJ Default | QuickFIXJÂ Optimized | |
---|---|---|---|---|
Min | 37.9 | 26.2 | 85.7 | 70.0 |
Max | 1894.5 | 1011.8 | 38917.9 | 43565.8 |
Average | 45.9 | 28.6 | 258.0 | 242.6 |
50% | 43.9 | 27.7 | 113.5 | 114.3 |
95% | 63.2 | 30.8 | 182.0 | 164.9 |
99% | 72.4 | 52.2 | 2107.0 | 1336.4 |
The only difference between default and optimized QuickFIXJ configurations is in storage type usage. The corresponding application argument is specified during performance test execution.
QuickFIXJ Default means that a Persistent storage type is used for this configuration.
QuickFIXJ Optimized means that no messages are persisted. This will force QFJ to always send GapFills instead of resending messages.