#!/bin/bash # Get the IP addresses p0addr=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' floram_p0) p1addr=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' floram_p1) # The ORAM size size=26 iters=128 if [ "$1" != "" ]; then size="$1" fi if [ "$2" != "" ]; then iters="$2" fi items=$((1< $savefilep0 2>&1" & sleep 2 docker exec -w /root/floram-floram-release/build/tests floram_p1 bash -c "$FLORAM_NUMA_P1 stdbuf -o 0 ./bench_oram_read -c $p0addr -p 3000 -s 8 -o fssl_cprg -e $items -i $iters > $savefilep1 2>&1" & wait echo ===== P0 output docker exec -w /root/floram-floram-release/build/tests floram_p0 cat $savefilep0 docker exec -w /root/floram-floram-release/build/tests floram_p0 rm -f $savefilep0 echo ===== P1 output docker exec -w /root/floram-floram-release/build/tests floram_p1 cat $savefilep1 docker exec -w /root/floram-floram-release/build/tests floram_p1 rm -f $savefilep1 date "+===== End %s %F %T"