Align sync mode fps measurement in py benchmark_app with cpp benchmark_app (#17773)
This commit is contained in:
1 parent
4d2d58b647
commit
70b935dfe2
1 file changed
+1
-3
@@ -162,6 +162,7 @@ class Benchmark:
|
||||
def main_loop(self, requests, data_queue, batch_size, latency_percentile, pcseq):
|
||||
if self.api_type == 'sync':
|
||||
times, total_duration_sec, iteration = self.sync_inference(requests[0], data_queue)
|
||||
fps = len(batch_size) * iteration / total_duration_sec
|
||||
elif self.inference_only:
|
||||
times, total_duration_sec, iteration = self.async_inference_only(requests)
|
||||
fps = len(batch_size) * iteration / total_duration_sec
|
||||
@@ -174,9 +175,6 @@ class Benchmark:
|
||||
min_latency_ms = times[0]
|
||||
max_latency_ms = times[-1]
|
||||
|
||||
if self.api_type == 'sync':
|
||||
fps = len(batch_size) * 1000 / median_latency_ms
|
||||
|
||||
if pcseq:
|
||||
for group in self.latency_groups:
|
||||
if group.times:
|
||||
|
||||
Reference in new issue
Block a user