Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (19 sloc) 503 Bytes
#!/usr/bin/env ruby
require_relative "../lib/ferret"
run_every_time do
bash(name: :dd, stdin: <<'EOF')
if [ ! -f /tmp/o ]; then
if [ "$(uname)" = "Darwin" ]; then
dd if=/dev/zero of=/tmp/o bs=10000000 count=2
else
dd if=/dev/zero of=/tmp/o bs=10M count=2 oflag=direct,sync
fi
fi
EOF
end
run_every_time do
bash(name: :curl, stdin: <<'EOF')
curl -i -X PUT http://ferretapp.s3.amazonaws.com/perf_network --data-binary @/tmp/o
EOF
end
run forever: true