aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/gnuplot/plot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/gnuplot/plot.sh')
-rw-r--r--src/tools/gnuplot/plot.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/gnuplot/plot.sh b/src/tools/gnuplot/plot.sh
new file mode 100644
index 0000000..e288c6c
--- /dev/null
+++ b/src/tools/gnuplot/plot.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+gcc -o mem_lat mem_lat.c -g -O3 -Wall -Werror
+
+for stride in 32 64 128 256 512; do \
+ taskset -c 1 ./mem_lat 128 $stride | tee stride_$stride.txt ; \
+done
+
+gnuplot -p -c mem_lat.plot
+
+rm -f stride_*.txt mem_lat