Skip to content
Snippets Groups Projects
Commit 437f6d1c authored by Xuan Gu's avatar Xuan Gu
Browse files

Upload New File

parent 4998c1ec
No related branches found
No related tags found
No related merge requests found
function [throughput] = get_throughput(result_dir)
if isfile(result_dir)
json_str = fileread(result_dir);
throughput_train_position = strfind(json_str, 'throughput_train');
latency_train_mean_position = strfind(json_str, 'latency_train_mean');
throughput = str2double(json_str(throughput_train_position(end) + 19 : latency_train_mean_position(end)-4));
else
throughput = 0;
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment