summaryrefslogtreecommitdiffstats
path: root/handy_cmdlines
diff options
context:
space:
mode:
Diffstat (limited to 'handy_cmdlines')
-rw-r--r--handy_cmdlines7
1 files changed, 7 insertions, 0 deletions
diff --git a/handy_cmdlines b/handy_cmdlines
new file mode 100644
index 0000000..05b6874
--- /dev/null
+++ b/handy_cmdlines
@@ -0,0 +1,7 @@
+for i in $(seq 1 1000) ; do ./test ; done | sort | uniq -c | awk '{ sum += ($1 * $2) } END { print sum }'
+for i in $(seq 1 1000) ; do ./test ; done | awk '{ sum += $1 ; counter+=1 ; print sum/counter }'
+
+gcc cacheRows.c -O0 && ./a.out w> output && Rscript plot.r
+
+gcc cacheRows2.c -o cacheRows2 ; mkdir -p out ; for i in $(seq -w 1 10) ; do ./cacheRows2 10000 40 1000 output.dat ; Rscript plot2.r ; mv output.png out/$i.png ; mv output.dat out/$i.dat ; done
+gcc cacheRows2.c -o cacheRows2 ; echo "Offset Ticks" > output.dat ; for i in $(seq 1 100) ; do ./cacheRows2 10000 40 1000 - >> output.dat ; echo RUN $i done ; done ; echo 'Done ... now generating graph (this may take a while)' ; Rscript plot2.r