Open junxnone opened 4 years ago
async mode
inference images
总时间
times = request_queue.times times.sort() latency_ms = median(times) fps = batch_size * 1000 / latency_ms if self.api_type == 'async': fps = batch_size * iteration / total_duration_sec
Reference
Brief
Calculate Latency & Throughput
async mode
取inference images
除以总时间