bumingchun commented on PR #1763:
URL: https://github.com/apache/incubator-brpc/pull/1763#issuecomment-1128315655

   
   
   
   > 把时间分辨率从us变成ns有什么特殊的考虑吗?是不是和要解决的问题无关?
   
   
将时间分辨率从us变成ns是为了解决高qps情况下,因为取整interval精度不够的问题,导致压测qps不准问题。举例说明,例如我们设置req_rate为510000,要是使用us,计算出来的interval
 = 1 
us,要是忽略发送请求的时间(理想情况),则最终的qps是1000000。要是使用ns,计算出来的interval是1960ns,忽略发送请求时间,则最终qps为510204,更为准确。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to