Friday, 25 May 2012

Fix8 version 0.5.7 released

I am releasing Fix8 version 0.5.7 today. This is a performance release and is designed to:

1. reduce the encode/decode latency
2. reduce message and field ctor./ dtor times
3. optimise internal message field lookups

home

hftest

I have also included a new test application designed to provide an example of high frequency use. The new application is called hftest and will be built by default. Its configuration and operation is similar to the other test client/server f8test.

You can preload (pre-construct and populate) a specified number of NewOrderSingle messages and then transmit them in one go. In the following example, we preload 200000 orders and send them. The server then responds with ExecutionReports (acks and fills).

The following is an example run:


% ./hftest -r -l client
0000001 A 2012-05-21 09:18:43.632024292 Starting session
0000002 A 2012-05-21 09:18:43.632259581 Trying to connect to: 127.0.0.1:11002 (1)
0000003 A 2012-05-21 09:18:43.632577430 Connection successful
0000004 A 2012-05-21 09:18:43.632741462 Session connected
0000005 B 2012-05-21 09:18:43.637290025 Heartbeat interval is 5


Key     Command
===     =======
?       Help
a       Send all Preloaded NewOrderSingle msgs
l       Logout
n       Send a NewOrderSingle msg
p       Preload n NewOrderSingle msgs
x       Exit




0 NewOrderSingle msgs currently preloaded.
Enter number of NewOrderSingle msgs to preload:200000
200000 NewOrderSingle msgs preloaded.
200000 NewOrderSingle msgs sent
0 NewOrderSingle msgs remaining.
787000 ExecutionReport msgs received
0000006 C 2012-05-21 09:25:31.043745212 Session terminating


Latency


On my test machine which is a
mac mini (Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz)
running Ubuntu 12.04 64 bit
4GB RAM

Simple ExecutionReport:
encode 20us, decode 72us, ctor 8us, dtor 3.4us

Simple NewOrderSingle
encode 17us, decode 70us, ctor 7us, dtor 2.6us



3 comments:

  1. I have significantly reduced these latencies. In the next release you should see encodes down to 12-15us and decodes around 14us.

    ReplyDelete
  2. Hi, after running this example, where can I see the execution report?
    thanks

    ReplyDelete
    Replies
    1. Hello,
      the execution reports will be in the protocol logs, which you should have configured in your xml config file.
      \dakka

      Delete