qps
qps copied to clipboard
High performance qps counter
Results
2
qps issues
Sort by
recently updated
recently updated
newest added
get 方法的逻辑本身没有问题,但是由于调用时当前这一秒尚未走完,因此 this.counts[index][second] 中存储的 qps 不是当前一秒走完的数据,因此直接使用这个数据的意义不大,可以新增一个 getExact 方法,用来返回前一秒的数据。大佬觉得怎么样,如果 ok 的话我就提个 pr
一处代码求解惑
2
https://github.com/node-modules/qps/blob/master/index.js#L55 `>2000`是怎么得出这个边界的?