metrics: Fix result finding

This PR fixes the result finding for the general throughput for
the tensorflow benchmark.

Fixes #8466

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
Gabriela Cervantes
2023-11-17 15:59:51 +00:00
parent f8322ffad2
commit 37916e7a58

View File

@@ -28,8 +28,8 @@ CMD="$dst_dir/$start_script"
guest_trigger_file="$dst_dir/$trigger_file" guest_trigger_file="$dst_dir/$trigger_file"
host_trigger_file="$src_dir/$trigger_file" host_trigger_file="$src_dir/$trigger_file"
INITIAL_NUM_PIDS=1 INITIAL_NUM_PIDS=1
CMD_FILE="cat results | grep 'Average Throughput' | wc -l" CMD_FILE="cat results | grep 'Throughput' | wc -l"
CMD_RESULTS="cat results | grep 'Average Throughput' | cut -d':' -f2 | cut -d' ' -f2 | tr '\n' ','" CMD_RESULTS="cat results | grep 'Throughput' | cut -d':' -f2 | cut -d' ' -f2 | tr '\n' ','"
function remove_tmp_file() { function remove_tmp_file() {
rm -rf "${tensorflow_file}" rm -rf "${tensorflow_file}"