kro/zeromq-scala-binding — Issue #6: Is Scala binding slowing down the throughput considerably?
Author: vhazrati
Created: 2011-12-19 10:08:09+00:00
State: open

We are using a pull push mechanism similar to the perf tests specified here for ZeroMQ. http://www.zeromq.org/results:perf-howto

For the throughput test with a message size of 4.3KB and 100,000 messages i get a performance of 85K msg/sec

vikas@vikas-laptop:~/w/software/exploded/zeromq-2.1.10/perf$ local_thr tcp://127.0.0.1:5555 4300 100000
message size: 4300 [B]
message count: 100000
mean throughput: 85203 [msg/s]
mean throughput: 2930.983 [Mb/s]

However with the code in Scala and using the Scala binding 0.0.3 i get less than 15K msg/sec.

Gist here https://gist.github.com/1496406

Could you please let me know what is going wrong or does the Scala code need some tweaking?