50ec59a0f9507f845988ef912f3579f57f109325
[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/nfs3/writebench.py $SYNWRITE_RATE) >/scratch/synwrite/$BLUESKY_RUN_NAME.times