93cb191de1f75e06ddd53c0a6139bccc0c17a2bd
[bluesky.git] / microbench / run-spec.sh
1 #!/bin/bash
2
3 BASEDIR=$(dirname $(which $0))
4 . $BASEDIR/run-common.sh
5
6 run_spec() {
7     BLUESKY_RUN_NAME=$(date +%Y%m%d)-$1
8     SPEC_CONF=$2
9
10     $HOME/bin/s3-cleanup.py mvrable-bluesky
11     $HOME/bin/s3-cleanup.py mvrable-bluesky-west
12     run_cmd $PROXY cleanup-proxy
13     run_cmd $PROXY run-proxy >$BLUESKY_RUN_NAME.proxy 2>&1 &
14     proxy_pid=$!
15     sleep 10
16
17     run_cmd $BENCHER run-specsfs
18
19     run_cmd $PROXY stop-proxy
20     echo "Waiting for proxy to stop..."
21     wait $proxy_pid
22 }
23
24 BLUESKY_TARGET=s3:mvrable-bluesky-west
25 BLUESKY_OPT_FULL_SEGMENTS=1
26 run_spec s3-west-fullseg sfs_bluesky