Performance

Performance 标签下共有 1 篇文章

QPS 和 RT 的关系

• bwangel tips performance

术语说明

  • QPS: Query Per Second
  • RT: Response Time
  • RT_CPU: 单个请求中的 CPU 时间
  • RT_WAIT: 单个请求中除了 CPU 时间外的其他时间(等待时间)

结论

单线程情况下, QPS = 1000 / RT

多线程情况下,最好的情况(最佳线程数)是

QPS = 1000 / RT_CPU

最佳线程数 = (RT_CPU+RT_WAIT) …