{"action":"created","issue":{"url":"https://api.github.com/repos/benjamin-hodgson/asynqp/issues/40","labels_url":"https://api.github.com/repos/benjamin-hodgson/asynqp/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/benjamin-hodgson/asynqp/issues/40/comments","events_url":"https://api.github.com/repos/benjamin-hodgson/asynqp/issues/40/events","html_url":"https://github.com/benjamin-hodgson/asynqp/issues/40","id":107051859,"number":40,"title":"Not using TCP_NODELAY reduce performance considerably","user":{"login":"socketpair","id":1157412,"avatar_url":"https://avatars.githubusercontent.com/u/1157412?v=3","gravatar_id":"","url":"https://api.github.com/users/socketpair","html_url":"https://github.com/socketpair","followers_url":"https://api.github.com/users/socketpair/followers","following_url":"https://api.github.com/users/socketpair/following{/other_user}","gists_url":"https://api.github.com/users/socketpair/gists{/gist_id}","starred_url":"https://api.github.com/users/socketpair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socketpair/subscriptions","organizations_url":"https://api.github.com/users/socketpair/orgs","repos_url":"https://api.github.com/users/socketpair/repos","events_url":"https://api.github.com/users/socketpair/events{/privacy}","received_events_url":"https://api.github.com/users/socketpair/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-17T19:05:02Z","updated_at":"2015-09-17T20:26:47Z","closed_at":null,"body":"\r\n`connection = yield from asynqp.connect()` \r\n\r\ngive RTT 0.04 sec (!) (i.e. 22 msg send/recv ops/sec)\r\n\r\n```\r\nsock = socket.socket()\r\nsock.connect(('localhost', 5672))\r\nsock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)\r\nconnection = yield from asynqp.connect(sock=sock)\r\n```\r\n\r\ngive RTT 0.004 (i.e. 234 msg send/recv ops/sec)\r\n\r\nRPC libraries should DIFINITELY set O_NODELAY on sockets.\r\n"},"comment":{"url":"https://api.github.com/repos/benjamin-hodgson/asynqp/issues/comments/141217875","html_url":"https://github.com/benjamin-hodgson/asynqp/issues/40#issuecomment-141217875","issue_url":"https://api.github.com/repos/benjamin-hodgson/asynqp/issues/40","id":141217875,"user":{"login":"socketpair","id":1157412,"avatar_url":"https://avatars.githubusercontent.com/u/1157412?v=3","gravatar_id":"","url":"https://api.github.com/users/socketpair","html_url":"https://github.com/socketpair","followers_url":"https://api.github.com/users/socketpair/followers","following_url":"https://api.github.com/users/socketpair/following{/other_user}","gists_url":"https://api.github.com/users/socketpair/gists{/gist_id}","starred_url":"https://api.github.com/users/socketpair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socketpair/subscriptions","organizations_url":"https://api.github.com/users/socketpair/orgs","repos_url":"https://api.github.com/users/socketpair/repos","events_url":"https://api.github.com/users/socketpair/events{/privacy}","received_events_url":"https://api.github.com/users/socketpair/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T20:26:47Z","updated_at":"2015-09-17T20:26:47Z","body":"Python in general should give about 3K/sec....\r\nrabbitmq give nearly 50K/sec\r\nhttps://www.rabbitmq.com/blog/2012/04/25/rabbitmq-performance-measurements-part-2/\r\nhttp://jessearmand.com/blog/2013/06/11/im-sold-with-golang/  (I have re-checked these tests on my PC)\r\n\r\nI can attach my RPC server and client sources written using your library. Can you help me to profile ? don't know who is slowing down. library or my code. or even broker....\r\n"}}