diff --git a/scripts/get_throughput.m b/scripts/get_throughput.m
new file mode 100644
index 0000000000000000000000000000000000000000..2e8350c429356c58544a81c0478466bd33c03c98
--- /dev/null
+++ b/scripts/get_throughput.m
@@ -0,0 +1,11 @@
+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