#/bin/bash set -e killall memcached || true memcached & memcached-tool 127.0.0.1 dump ARGS='-p recordcount=1 -p operationcount=1 -p workload=site.ycsb.workloads.CoreWorkload -p memcached.hosts=127.0.0.1 -p dataintegrity=true' #loading echo "loading data..." ./bin/ycsb load memcached -s $ARGS echo -e "\n\n" memcached-tool 127.0.0.1 dump echo -e "\n\n" #updating echo -e "updating data...\n\n" ./bin/ycsb run memcached -s $ARGS -p "updateproportion=1.0" -p "readproportion=0.0" echo -e "\n\n" memcached-tool 127.0.0.1 dump echo -e "\n\n" #verifyng echo -e "verifying data...\n\n" ./bin/ycsb run memcached -s $ARGS -p "readproportion=1.0" echo -e "\n\n" #memcached miss the object without this sleep... :S sleep 1 memcached-tool 127.0.0.1 dump