import repository from arizona
[raven.git] / demo / cpubench / start
1 #!/bin/bash
2 # This stub script is used for starting your experiment
3
4 # run experiment here
5
6 RUNTIME=`/usr/bin/time -f "%U" bash -c "dd if=/dev/zero bs=1024 count=131072 2>&1 | sha1sum > /dev/null" 2>&1`
7
8 # report result back to the experimenter
9
10 /etc/kong.d/return_result sha1time $RUNTIME
11
12 # when experiment is complete, run /etc/kong.d/prepared to let kong know
13 # you're done.
14                                              
15 /etc/kong.d/complete