4d82756c8eff8da42c351138d2d75307d7a7b3ce
[bluesky.git] / microbench / setup / run-synwrite
1 #!/bin/bash
2 #
3 # Launch the synthetic write benchmark.
4
5 SYNWRITE_RATE=10
6
7 # Export any environment variables specified on the command line
8 for e in "$@"; do
9     echo "$e" 1>&2
10     if echo "$e" | grep = >/dev/null; then
11         eval "$e"
12         export ${e%=*}
13     fi
14 done
15
16 (echo -n "# "; date; /scratch/bluesky.git/microbench/writebench.py $SYNWRITE_RATE) >/scratch/synwrite/$BLUESKY_RUN_NAME.times