
Renames all .rst files in /rally/doc/samples/tasks to README.rst. And moves /rally/doc/samples/support to /rally/doc/samples/tasks Closes-bug: #1351599 Change-Id: I675266292bc1fbb62374ce0d12e6d06fbf7a8e3e
13 lines
353 B
Bash
13 lines
353 B
Bash
#!/bin/sh
|
|
time_seconds(){ (time -p $1 ) 2>&1 |awk '/real/{print $2}'; }
|
|
file=/tmp/test.img
|
|
c=1000 #1GB
|
|
write_seq_1gb=$(time_seconds "dd if=/dev/zero of=$file bs=1M count=$c")
|
|
read_seq_1gb=$(time_seconds "dd if=$file of=/dev/null bs=1M")
|
|
[ -f $file ] && rm $file
|
|
|
|
echo "{
|
|
\"write_seq_1gb\": $write_seq_1gb,
|
|
\"read_seq_1gb\": $read_seq_1gb
|
|
}"
|