From e43d79cfd68c3cdd33b48f5b419007d951556e2c Mon Sep 17 00:00:00 2001
From: lyblsgo <lyblsgo@163.com>
Date: 星期四, 20 四月 2023 19:29:52 +0800
Subject: [PATCH] add output speedup
---
funasr/runtime/onnxruntime/tester/tester_rtf.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/funasr/runtime/onnxruntime/tester/tester_rtf.cpp b/funasr/runtime/onnxruntime/tester/tester_rtf.cpp
index 7f2368e..793a33a 100644
--- a/funasr/runtime/onnxruntime/tester/tester_rtf.cpp
+++ b/funasr/runtime/onnxruntime/tester/tester_rtf.cpp
@@ -141,6 +141,7 @@
printf("total_time_wav %ld ms.\n", (long)(total_length * 1000));
printf("total_time_comput %ld ms.\n", total_time / 1000);
printf("total_rtf %05lf .\n", (double)total_time/ (total_length*1000000));
+ printf("speedup %05lf .\n", 1.0/((double)total_time/ (total_length*1000000)));
FunASRUninit(AsrHandle);
return 0;
--
Gitblit v1.9.1