{"action":"created","issue":{"url":"https://api.github.com/repos/nats-io/cnats/issues/83","repository_url":"https://api.github.com/repos/nats-io/cnats","labels_url":"https://api.github.com/repos/nats-io/cnats/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/nats-io/cnats/issues/83/comments","events_url":"https://api.github.com/repos/nats-io/cnats/issues/83/events","html_url":"https://github.com/nats-io/cnats/issues/83","id":233855300,"number":83,"title":"Publish Performance","user":{"login":"ugiwgh","id":3953307,"avatar_url":"https://avatars2.githubusercontent.com/u/3953307?v=3","gravatar_id":"","url":"https://api.github.com/users/ugiwgh","html_url":"https://github.com/ugiwgh","followers_url":"https://api.github.com/users/ugiwgh/followers","following_url":"https://api.github.com/users/ugiwgh/following{/other_user}","gists_url":"https://api.github.com/users/ugiwgh/gists{/gist_id}","starred_url":"https://api.github.com/users/ugiwgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ugiwgh/subscriptions","organizations_url":"https://api.github.com/users/ugiwgh/orgs","repos_url":"https://api.github.com/users/ugiwgh/repos","events_url":"https://api.github.com/users/ugiwgh/events{/privacy}","received_events_url":"https://api.github.com/users/ugiwgh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-06T11:03:10Z","updated_at":"2017-06-07T02:52:39Z","closed_at":null,"body":"I have test the following code.\r\n`    for(i=1;i<101;i++)\r\n    {\r\n      for(j=1;j<1001;j++)\r\n      {\r\n        natsConnection_Publish(nc,subject,bf,bfsz); // bfsz=136\r\n      }\r\n    }`\r\nI use two nodes. One node A publish 10w messages, cost about 330ms, and take 8.9 cpu. The other node B publish 10w messages, cost about 1363ms, and take 3.3 cpu.\r\n\r\nI want to improve node B performance, and it can publish 10w messages within 1000ms. I don't known the performance bottleneck.\r\n"},"comment":{"url":"https://api.github.com/repos/nats-io/cnats/issues/comments/306671560","html_url":"https://github.com/nats-io/cnats/issues/83#issuecomment-306671560","issue_url":"https://api.github.com/repos/nats-io/cnats/issues/83","id":306671560,"user":{"login":"ugiwgh","id":3953307,"avatar_url":"https://avatars2.githubusercontent.com/u/3953307?v=3","gravatar_id":"","url":"https://api.github.com/users/ugiwgh","html_url":"https://github.com/ugiwgh","followers_url":"https://api.github.com/users/ugiwgh/followers","following_url":"https://api.github.com/users/ugiwgh/following{/other_user}","gists_url":"https://api.github.com/users/ugiwgh/gists{/gist_id}","starred_url":"https://api.github.com/users/ugiwgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ugiwgh/subscriptions","organizations_url":"https://api.github.com/users/ugiwgh/orgs","repos_url":"https://api.github.com/users/ugiwgh/repos","events_url":"https://api.github.com/users/ugiwgh/events{/privacy}","received_events_url":"https://api.github.com/users/ugiwgh/received_events","type":"User","site_admin":false},"created_at":"2017-06-07T02:52:39Z","updated_at":"2017-06-07T02:52:39Z","body":"The node A is CentOS Linux release 7.3.1611, Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz, 2 socket 6 core 12 thread.\r\nThe node B is Red Hat Enterprise Linux Server release 7.0, Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz, 1 core, vmware virtual machine.\r\nThe NATS Server install on node A.\r\nYes, it's  the same application, and the same library. And compiled on node A.\r\nThe node A and node B publish the message at the same time.\r\nThe node A txkB/s is about 15654.94, and rxkB/s is about 15654.94 on lo.\r\nThe node A txkB/s is about 190.15, and rxkB/s is about 13467.67 on enp129s0f1.\r\nThe node B txkB/s is about 17715.47, and rxkB/s is about 645.96 on eno16777736.\r\n"}}
{"actor":{"display_login":"ugiwgh"}}