{"action":"created","issue":{"url":"https://api.github.com/repos/baidu/sofa-pbrpc/issues/36","labels_url":"https://api.github.com/repos/baidu/sofa-pbrpc/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/baidu/sofa-pbrpc/issues/36/comments","events_url":"https://api.github.com/repos/baidu/sofa-pbrpc/issues/36/events","html_url":"https://github.com/baidu/sofa-pbrpc/issues/36","id":117031461,"number":36,"title":"性能优化","user":{"login":"bluebore","id":6851389,"avatar_url":"https://avatars.githubusercontent.com/u/6851389?v=3","gravatar_id":"","url":"https://api.github.com/users/bluebore","html_url":"https://github.com/bluebore","followers_url":"https://api.github.com/users/bluebore/followers","following_url":"https://api.github.com/users/bluebore/following{/other_user}","gists_url":"https://api.github.com/users/bluebore/gists{/gist_id}","starred_url":"https://api.github.com/users/bluebore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluebore/subscriptions","organizations_url":"https://api.github.com/users/bluebore/orgs","repos_url":"https://api.github.com/users/bluebore/repos","events_url":"https://api.github.com/users/bluebore/events{/privacy}","received_events_url":"https://api.github.com/users/bluebore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cyshi","id":7066978,"avatar_url":"https://avatars.githubusercontent.com/u/7066978?v=3","gravatar_id":"","url":"https://api.github.com/users/cyshi","html_url":"https://github.com/cyshi","followers_url":"https://api.github.com/users/cyshi/followers","following_url":"https://api.github.com/users/cyshi/following{/other_user}","gists_url":"https://api.github.com/users/cyshi/gists{/gist_id}","starred_url":"https://api.github.com/users/cyshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyshi/subscriptions","organizations_url":"https://api.github.com/users/cyshi/orgs","repos_url":"https://api.github.com/users/cyshi/repos","events_url":"https://api.github.com/users/cyshi/events{/privacy}","received_events_url":"https://api.github.com/users/cyshi/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-16T00:40:56Z","updated_at":"2015-11-16T02:26:25Z","closed_at":null,"body":"40万qps在两年前处于领先地位，而今天已经被很多竞品超越。\r\n希望拿出几天时间优化下性能，将极限吞吐提升到100万qps以上。"},"comment":{"url":"https://api.github.com/repos/baidu/sofa-pbrpc/issues/comments/156891047","html_url":"https://github.com/baidu/sofa-pbrpc/issues/36#issuecomment-156891047","issue_url":"https://api.github.com/repos/baidu/sofa-pbrpc/issues/36","id":156891047,"user":{"login":"cyshi","id":7066978,"avatar_url":"https://avatars.githubusercontent.com/u/7066978?v=3","gravatar_id":"","url":"https://api.github.com/users/cyshi","html_url":"https://github.com/cyshi","followers_url":"https://api.github.com/users/cyshi/followers","following_url":"https://api.github.com/users/cyshi/following{/other_user}","gists_url":"https://api.github.com/users/cyshi/gists{/gist_id}","starred_url":"https://api.github.com/users/cyshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyshi/subscriptions","organizations_url":"https://api.github.com/users/cyshi/orgs","repos_url":"https://api.github.com/users/cyshi/repos","events_url":"https://api.github.com/users/cyshi/events{/privacy}","received_events_url":"https://api.github.com/users/cyshi/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T02:26:25Z","updated_at":"2015-11-16T02:26:25Z","body":"优化了两点\r\n\r\n* 多线程共享一个io_service导致server没有线程扩展性，现在改成了io_service per cpu\r\n\r\n* ptime_now函数使用了boost库中的取时间函数，gmtime_r这个应该是有锁的\r\n\r\n以上两点优化后，在 `Intel(R) Xeon(R) CPU E5-2450 v2 @ 2.50GHz 128g RAM` 机器上，性能大概110w左右\r\n\r\n左言，有没有什么别的建议  "}}