d41621eb7c
This script will run scenario specified by $RALLY_SCENARIO environment variable. Also tags now supported. Tags are stand for modifying deployment or environment somehow. Currently implemented only "v3" tag. This tag is changing deployment endpoints to use keystone v3 protocol. For example we want to run two scenarios: one for keysone v2 and one for v3. Then we need to create two files: my-rally.yaml # will be run vs keystone v2 (v2 is used by default) my-rally_v3.yaml # will be run vs keystone v3 And export $RALLY_SCENARIO=my-rally.yaml Change-Id: I44d1788e3892be59afbf8eaecb5d3e3b995fc3a8
13 lines
329 B
Bash
13 lines
329 B
Bash
#!/bin/sh
|
|
time_seconds(){ (time -p $1 ) 2>&1 |awk '/real/{print $2}'; }
|
|
file=/tmp/test.img
|
|
c=100 #100M
|
|
write_seq=$(time_seconds "dd if=/dev/zero of=$file bs=1M count=$c")
|
|
read_seq=$(time_seconds "dd if=$file of=/dev/null bs=1M")
|
|
[ -f $file ] && rm $file
|
|
|
|
echo "{
|
|
\"write_seq\": $write_seq,
|
|
\"read_seq\": $read_seq
|
|
}"
|