Approach
Benchmarks were run against two different versions of FIX Antenna C++ (2.31.0 and 2.30.0), and the results were compared in order to detect possible regressions.
The following builds were tested:
- FIX Antenna C++ 2.30.0_580
- FIX Antenna C++ 6.31.0_595
Hardware
FIX Antenna Machine
- Intel(R) Xeon(R) CPU E5-2687 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-2687 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
Benchmarks
Single Session Echo Scenario
- FIX Antenna has one One initiator session is configured on the server hostFIX Antenna C++ side.
- The client application has one One acceptor session is configured on the client hostapplication side.
The overall process is following:
- The initiator (FIX Antenna C++ connects to the client application ) sends 5000000 messages with an approximately constant rate (50000 msg/sec).The acceptor sends every incoming message back to the senderand sends 1000000 FIX 4.2 messages at a rate of 50000 messages per second.
- The client application receives the messages and responds to FIX Antenna C++ with the same message via the same TCP/IP connection (the same session).
- FIX Antenna C++ collects the response time histogram.
- The process is repeated 3 times for each FIX Antenna C++ release version.
The response time measured by the client application FIX Antenna 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 client application)
...
So the round-trip time formula is: RTT = t2 - t1 and the measurement unit is measured in microseconds.
Results
microseconds.
The test scenario diagram:
Drawio | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Results
The performance of the FIX Antenna C++ 2.31.0 release is almost the same as the performance of the FIX Antenna C++ 2.30.0 release. There is no performance degradation or improvement.
Performance value slightly differs from run to run due to the nature of the system used to measure the performance.
Single Session Echo Scenario
The table below contains a single run one-to-one comparison and may have some differences compared to the graphic above that shows a 3 runs average comparison.
FA 2.30.0_580, usec | FA 2.31.0_595, usec | |
---|---|---|
Min | 7.824 | 7.980 |
Max | 220.543218.111 | 214.399 |
Median | 9.023 | 8.991943 |
Average | 9.224 | 9.205133 |
50% | 9.023 | 8.991943 |
75% | 9.063079 | 9.023 |
90% | 9.231319 | 9.207 |
95% | 9.583 | 9.679495 |
99% | 10.127031 | 9.783 |
99.9% | 78.719 | 8676.143479 |
99.99% | 191.327 | 177.743151 |