compute qps