source "$EXP_ROOT/experiments/memcached.shared.sh"

pre_start() {
    memcached_pre_start
}

run_exp() {
    memcached_init

    QPS_START=$((QPS_START_PER_THREAD * THREADS))
    QPS_END=$((QPS_END_PER_THREAD * THREADS))
    QPS_STEP=$((QPS_STEP_PER_THREAD * THREADS))

    for QPS in $(seq $QPS_START $QPS_STEP $QPS_END); do
        export QPS
        run_mutilate $QPS
    done    

    memcached_deinit
}

post_start() {
    memcached_deinit
}
