#!/bin/bash

numdocs=2000000
stripe_bits=8

base_cmd="numactl --cpunodebind=0 --localalloc perf stat -ddd env LD_PRELOAD=$HOME/vespa/lib64/vespa/malloc/libvespamalloc.so ./vespa-feed-bm --documents $numdocs --put-passes 1 --update-passes 10 --remove-passes 0 --max-pending 8000 --indexing-sequencer throughput client-threads 3"

spi_only=$base_cmd
base_for_rest="$base_cmd --response-threads 3"

chain_base="$base_for_rest --use-storage-chain "
chain_stripe="$chain_base --bucket-db-stripe-bits $stripe_bits"
chain_stripe_async="$chain_stripe --use-async-message-handling"
service_layer="$base_for_rest --enable-service-layer --bucket-db-stripe-bits $stripe_bits --use-async-message-handling"
service_layer_rpc="$service_layer --rpc-network-threads 5 --rpc-targets-per-node 8"
service_layer_mbus="$service_layer --use-message-bus"
distributor="$service_layer_rpc --enable-distributor"

echo "Running test: spi_only"
$spi_only
#echo "Running test: chain_base"
#$chain_base
echo "Running test: chain_stripe"
$chain_stripe
echo "Running test: chain_stripe_async"
$chain_stripe_async
echo "Running test: service_layer_rpc"
$service_layer_rpc
#echo "Running test: service_layer_mbus"
#$service_layer_mbus
echo "Running test: distributor"
$distributor

Add a small test script for running a set of benchmarks.
Add a small test script for running a set of benchmarks.
