Add method of calculate qps.