Skip to content
Permalink
Browse files

experment bash code

  • Loading branch information
yuz12012 committed Apr 26, 2017
1 parent 7b954fe commit e8615fc8cda63c48537b9c59e44faddb0cca5852
Showing with 18 additions and 0 deletions.
  1. +18 −0 parallel/experiment.sh
@@ -0,0 +1,18 @@
#!/bin/sh

echo "trial,block,thread,our_time,their_time" > out.csv
for trials in {1000 10000}
#trials=$(($trials*1000))
do
for i in $(seq 1 1000)
do
for j in $(seq 1 1000)
do

a=$({ time ./mygibbs data.txt $trials $i $j >/dev/null; } 2>&1 | grep real)
b=$({ time ./gibbs data.txt $trials $i $j >/dev/null; } 2>&1 | grep real)
echo "$trials,$i,$j,$a,$b" >> out.csv

done
done
done

0 comments on commit e8615fc

Please sign in to comment.
You can’t perform that action at this time.