
if false ; then

DEFS='-DUSE_TLS -DMIN_ALIGN=5 -DCB_SIZE_BITS=2 -DCHUNK_POWER=2 -DWITH_BTANDCHECK -DWITH_ACCOUNTS -DHAVE_PTHREAD -DUSE_TLS -DWANT_PRINTFSIMPLE -DESTIMATED_MIN_BLOCKS=4 -DCB_START_BITS=16'

export DEFS
export DEFS2="-DBLOCKS_FORMULA=(10000000 / (n + 2000))"
export PRECOMPILE='true'
bash ./run-tests.sh $1 || exit 1

fi


if true ; then

DEFS="-DUSE_TLS \
-DN_ARENAS_BITS=16 \
-DWITH_BTANDCHECK \
-DWITH_ACCOUNTS \
-DHAVE_PTHREAD \
-DUSE_TLS \
-DWANT_PRINTFSIMPLE \
"
export DEFS
export DEFS2="-Dnot_interesting"
export PRECOMPILE='true'
bash ./run-tests.sh $1 || exit 1

fi

# 
# DEFS2="-DBLOCKS_FORMULA=64"
# DEFS='-DUSE_TLS -DHAVE_PTHREAD -DNO_ASSERT_CHECKS -DNO_BLOCK_ORDERING -DALLOCATION_SIZE_RATIO=1200'
# export DEFS
# export DEFS2
# export PRECOMPILE='true'
# bash ./run-tests.sh $1 || exit 1
# 
# exit 0

# performance for ./tester_standart-dfwmalloc.bin
# 20,2047,962,1085,131546,823,132006,828,536870720,536870820,1.003617
# DEFS='-DHAVE_PTHREAD -DNO_ASSERT_CHECKS -DUSE_TLS -DBLOCKS_FORMULA=1024 -DCHUNK_POWER=2 -DALLOCATION_SIZE_RATIO=1080 -DCB_SIZE_BITS=3 -DNO_BLOCK_ORDERING -DMIN_ALIGN=4 -DESTIMATED_MIN_BLOCKS=3'

if true ; then

# DEFS='-DUSE_TLS -DWITH_BTANDCHECK -DWITH_ACCOUNTS -DHAVE_PTHREAD -DUSE_TLS -DWANT_PRINTFSIMPLE -DESTIMATED_MIN_BLOCKS=3'
# This combination has CB round_up sizes to 65520
DEFS='-DN_ARENAS_BITS=16 -DUSE_TLS -DMIN_ALIGN=4 -DCB_SIZE_BITS=4 -DCHUNK_POWER=1 -DWITH_BTANDCHECK -DWITH_ACCOUNTS -DHAVE_PTHREAD -DUSE_TLS -DWANT_PRINTFSIMPLE -DESTIMATED_MIN_BLOCKS=4'
# DEFS='-DHAVE_PTHREAD -DNO_ASSERT_CHECKS -DUSE_TLS -DBLOCKS_FORMULA=4096 -DCHUNK_POWER=1 -DALLOCATION_SIZE_RATIO=1040 -DCB_SIZE_BITS=3 -DNO_BLOCK_ORDERING -DMIN_ALIGN=1 -DESTIMATED_MIN_BLOCKS=4'
# DEFS='-DUSE_TLS -DWITH_BTANDCHECK -DWITH_ACCOUNTS -DHAVE_PTHREAD -DUSE_TLS -DWANT_PRINTFSIMPLE -DESTIMATED_MIN_BLOCKS=3 -DCHUNK_POWER=3'
# DEFS='-DHAVE_PTHREAD -DNO_ASSERT_CHECKS -DUSE_TLS -DCOMPACT_MODE -DBLOCKS_FORMULA=4096 -DCHUNK_POWER=2 -DALLOCATION_SIZE_RATIO=1400 -DCB_SIZE_BITS=3 -DNO_BLOCK_ORDERING -DMIN_ALIGN=1 -DESTIMATED_MIN_BLOCKS=4'
# DEFS='-DHAVE_PTHREAD -DxNO_ASSERT_CHECKS -DUSE_TLS -DCOMPACT_MODE -DBLOCKS_FORMULA=8192 -DCHUNK_POWER=2 -DALLOCATION_SIZE_RATIO=1040 -DCB_SIZE_BITS=4 -DMIN_ALIGN=5 -DESTIMATED_MIN_BLOCKS=4 -DWANT_PRINTFSIMPLE'
# DEFS='-DHAVE_PTHREAD -DNO_ASSERT_CHECKS -DUSE_TLS -DBLOCKS_FORMULA=256 -DCHUNK_POWER=1 -DALLOCATION_SIZE_RATIO=1020 -DCB_SIZE_BITS=3 -DMIN_ALIGN=3 -DESTIMATED_MIN_BLOCKS=4'
# DEFS='-DWANT_PRINTFSIMPLE -DHAVE_PTHREAD -DNO_ASSERT_CHECKS -DUSE_TLS -DBLOCKS_FORMULA=128 -DCHUNK_POWER=1 -DALLOCATION_SIZE_RATIO=1010 -DCB_SIZE_BITS=3 -DMIN_ALIGN=6 -DESTIMATED_MIN_BLOCKS=4'
export DEFS
export DEFS2="-Dnot_interesting"
export PRECOMPILE='true'
bash ./run-tests.sh $1 || exit 1

fi

if true ; then

# This combination has CB round_up sizes to 65520
export DEFS='-DHAVE_PTHREAD -DWITH_BTANDCHECK -DWITH_ACCOUNTS -DxNO_ASSERT_CHECKS -DUSE_TLS -DBLOCKS_FORMULA=128 -DCHUNK_POWER=1 -DALLOCATION_SIZE_RATIO=1080 -DCB_SIZE_BITS=4 -DNO_BLOCK_ORDERING -DMIN_ALIGN=4 -DESTIMATED_MIN_BLOCKS=4'
export DEFS2="-Dnot_interesting"
export PRECOMPILE='true'
bash ./run-tests.sh $1 || exit 1

fi



if true ; then

DEFS="-DUSE_TLS \
-DWITH_BTANDCHECK \
-DHAVE_PTHREAD \
-DCOMPACT_MODE \
-DALLOCATION_SIZE_RATIO=1666 \
-DCHUNK_POWER=1 \
-DCB_SIZE_BITS=4 \
"
export DEFS
export CHECK_EFFICIENCY=190
export DEFS2="-DBLOCKS_FORMULA=(10000000 / (n + 2000))"
export PRECOMPILE='true'
bash ./run-tests.sh $1 || exit 1

fi



if true ; then

DEFS="-DWANTED_ALIGNMENT=3 \
-DWITH_ACCOUNTS -DWITH_BTANDCHECK \
-DN_ARENAS_BITS=10 \
-DHAVE_PTHREAD \
-DUSE_TLS \
-DESTIMATED_MIN_BLOCKS=4 \
-DCOMPACT_MODE \
-DALLOCATION_SIZE_RATIO=1100 \
-DCB_SIZE_BITS=4 \
-DBLOCKS_FORMULA=64 \
-DCHUNK_POWER=1 \
-DMIN_ALIGN=0 \
"
export DEFS
export DEFS2="-Dnot_interesting"
export PRECOMPILE='true'
bash ./run-tests.sh $1 || exit 1

fi



if true ; then

DEFS="-DUSE_TLS \
-DN_ARENAS_BITS=16 \
-DWITH_BTANDCHECK \
-DWITH_ACCOUNTS \
-DHAVE_PTHREAD \
-DUSE_TLS \
-DWANT_PRINTFSIMPLE \
-DNO_BLOCK_ORDERING \
"
export DEFS
export DEFS2="-Dnot_interesting"
export PRECOMPILE='true'
bash ./run-tests.sh $1 || exit 1

fi




if true ; then

DEFS="-DUSE_TLS \
-DN_ARENAS_BITS=16 \
-DWITH_BTANDCHECK \
-DWITH_ACCOUNTS \
-DHAVE_PTHREAD \
-DUSE_TLS \
-DWANT_PRINTFSIMPLE \
-DCOMPACT_MODE \
"
export DEFS
export DEFS2="-Dnot_interesting"
export PRECOMPILE='true'
bash ./run-tests.sh $1 || exit 1

fi



if true ; then

# extremely contrived scenario:

DEFS="-DWANTED_ALIGNMENT=1 \
-DUSER_MAX_MALLOC=268435456 \
-DBUCKET_SMOOTHNESS=4 \
-DN_ARENAS_BITS=12 \
-DWITH_BTANDCHECK \
-DWITH_ACCOUNTS \
-DLIGHT \
-DHAVE_PTHREAD \
-DUSE_TLS \
-DWANT_PRINTFSIMPLE \
-DCALLTRACE_DEPTH=5 \
-DESTIMATED_MIN_BLOCKS=1 \
-DCOMPACT_MODE \
-DALLOCATION_SIZE_RATIO=1200 \
-DCB_SIZE_BITS=5 \
-DCHUNK_POWER=1 \
-DMIN_ALIGN=0 \
"
export DEFS
export DEFS2="-Dnot_interesting"
export PRECOMPILE='true'
bash ./run-tests.sh $1 || exit 1

fi


if true ; then

DEFS="-DWANTED_ALIGNMENT=3 \
-DUSER_MAX_MALLOC=268435456 \
-DBUCKET_SMOOTHNESS=10 \
-DN_ARENAS_BITS=16 \
-DWITH_BTANDCHECK \
-DWITH_ACCOUNTS \
-DLIGHT \
-DHAVE_PTHREAD \
-DUSE_TLS \
-DWANT_PRINTFSIMPLE \
-DCALLTRACE_DEPTH=40 \
-DBLOCKS_FORMULA=64 \
-DESTIMATED_MIN_BLOCKS=4 \
-DxCOMPACT_MODE \
-DNO_BLOCK_ORDERING \
-DALLOCATION_SIZE_RATIO=1001 \
-DCB_SIZE_BITS=4 \
-DCHUNK_POWER=1 \
-DMIN_ALIGN=0 \
"
export DEFS
export DEFS2="-Dnot_interesting"
export PRECOMPILE='false'
bash ./run-tests.sh $1 || exit 1

fi



echo
echo
echo all combinations: Success

