mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:34:14 +08:00
mdbx-test: alter/refine iteration loops.
Change-Id: I78657b0c736d84dc3fbb75ad28a9465cad0ff4b2
This commit is contained in:
parent
bfad1f7086
commit
4da4ab3650
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
if ! which make cc c++ tee lz4 >/dev/null; then
|
if ! which make cc c++ tee lz4 >/dev/null; then
|
||||||
echo "Please install the following prerequisites: make cc c++ tee lz4" >&2
|
echo "Please install the following prerequisites: make cc c++ tee lz4" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@ -19,72 +19,72 @@ UNAME="$(uname -s 2>/dev/null || echo Unknown)"
|
|||||||
# 1. clean data from prev runs and examine available RAM
|
# 1. clean data from prev runs and examine available RAM
|
||||||
|
|
||||||
if [[ -v VALGRIND && ! -z "$VALGRIND" ]]; then
|
if [[ -v VALGRIND && ! -z "$VALGRIND" ]]; then
|
||||||
rm -f valgrind-*.log
|
rm -f valgrind-*.log
|
||||||
else
|
else
|
||||||
VALGRIND=time
|
VALGRIND=time
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WANNA_MOUNT=0
|
WANNA_MOUNT=0
|
||||||
case ${UNAME} in
|
case ${UNAME} in
|
||||||
Linux)
|
Linux)
|
||||||
MAKE=make
|
MAKE=make
|
||||||
if [[ ! -v TESTDB_DIR || -z "$TESTDB_DIR" ]]; then
|
if [[ ! -v TESTDB_DIR || -z "$TESTDB_DIR" ]]; then
|
||||||
for old_test_dir in $(ls -d /dev/shm/mdbx-test.[0-9]*); do
|
for old_test_dir in $(ls -d /dev/shm/mdbx-test.[0-9]*); do
|
||||||
rm -rf $old_test_dir
|
rm -rf $old_test_dir
|
||||||
done
|
done
|
||||||
TESTDB_DIR="/dev/shm/mdbx-test.$$"
|
TESTDB_DIR="/dev/shm/mdbx-test.$$"
|
||||||
fi
|
fi
|
||||||
mkdir -p $TESTDB_DIR && rm -f $TESTDB_DIR/*
|
mkdir -p $TESTDB_DIR && rm -f $TESTDB_DIR/*
|
||||||
|
|
||||||
if LC_ALL=C free | grep -q -i available; then
|
if LC_ALL=C free | grep -q -i available; then
|
||||||
ram_avail_mb=$(($(LC_ALL=C free | grep -i Mem: | tr -s [:blank:] ' ' | cut -d ' ' -f 7) / 1024))
|
ram_avail_mb=$(($(LC_ALL=C free | grep -i Mem: | tr -s [:blank:] ' ' | cut -d ' ' -f 7) / 1024))
|
||||||
else
|
else
|
||||||
ram_avail_mb=$(($(LC_ALL=C free | grep -i Mem: | tr -s [:blank:] ' ' | cut -d ' ' -f 4) / 1024))
|
ram_avail_mb=$(($(LC_ALL=C free | grep -i Mem: | tr -s [:blank:] ' ' | cut -d ' ' -f 4) / 1024))
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
FreeBSD)
|
FreeBSD)
|
||||||
MAKE=gmake
|
MAKE=gmake
|
||||||
if [[ ! -v TESTDB_DIR || -z "$TESTDB_DIR" ]]; then
|
if [[ ! -v TESTDB_DIR || -z "$TESTDB_DIR" ]]; then
|
||||||
for old_test_dir in $(ls -d /tmp/mdbx-test.[0-9]*); do
|
for old_test_dir in $(ls -d /tmp/mdbx-test.[0-9]*); do
|
||||||
umount $old_test_dir && rm -r $old_test_dir
|
umount $old_test_dir && rm -r $old_test_dir
|
||||||
done
|
done
|
||||||
TESTDB_DIR="/tmp/mdbx-test.$$"
|
TESTDB_DIR="/tmp/mdbx-test.$$"
|
||||||
rm -rf $TESTDB_DIR && mkdir -p $TESTDB_DIR
|
rm -rf $TESTDB_DIR && mkdir -p $TESTDB_DIR
|
||||||
WANNA_MOUNT=1
|
WANNA_MOUNT=1
|
||||||
else
|
else
|
||||||
mkdir -p $TESTDB_DIR && rm -f $TESTDB_DIR/*
|
mkdir -p $TESTDB_DIR && rm -f $TESTDB_DIR/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ram_avail_mb=$(($(LC_ALL=C vmstat -s | grep -ie '[0-9] pages free$' | cut -d p -f 1) * ($(LC_ALL=C vmstat -s | grep -ie '[0-9] bytes per page$' | cut -d b -f 1) / 1024) / 1024))
|
ram_avail_mb=$(($(LC_ALL=C vmstat -s | grep -ie '[0-9] pages free$' | cut -d p -f 1) * ($(LC_ALL=C vmstat -s | grep -ie '[0-9] bytes per page$' | cut -d b -f 1) / 1024) / 1024))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin)
|
Darwin)
|
||||||
MAKE=make
|
MAKE=make
|
||||||
if [[ ! -v TESTDB_DIR || -z "$TESTDB_DIR" ]]; then
|
if [[ ! -v TESTDB_DIR || -z "$TESTDB_DIR" ]]; then
|
||||||
for vol in $(ls -d /Volumes/mdx[0-9]*[0-9]tst); do
|
for vol in $(ls -d /Volumes/mdx[0-9]*[0-9]tst); do
|
||||||
disk=$(mount | grep $vol | cut -d ' ' -f 1)
|
disk=$(mount | grep $vol | cut -d ' ' -f 1)
|
||||||
echo "umount: volume $vol disk $disk"
|
echo "umount: volume $vol disk $disk"
|
||||||
hdiutil unmount $vol -force
|
hdiutil unmount $vol -force
|
||||||
hdiutil detach $disk
|
hdiutil detach $disk
|
||||||
done
|
done
|
||||||
TESTDB_DIR="/Volumes/mdx$$tst"
|
TESTDB_DIR="/Volumes/mdx$$tst"
|
||||||
WANNA_MOUNT=1
|
WANNA_MOUNT=1
|
||||||
else
|
else
|
||||||
mkdir -p $TESTDB_DIR && rm -f $TESTDB_DIR/*
|
mkdir -p $TESTDB_DIR && rm -f $TESTDB_DIR/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pagesize=$(($(LC_ALL=C vm_stat | grep -o 'page size of [0-9]\+ bytes' | cut -d' ' -f 4) / 1024))
|
pagesize=$(($(LC_ALL=C vm_stat | grep -o 'page size of [0-9]\+ bytes' | cut -d' ' -f 4) / 1024))
|
||||||
freepages=$(LC_ALL=C vm_stat | grep '^Pages free:' | grep -o '[0-9]\+\.$' | cut -d'.' -f 1)
|
freepages=$(LC_ALL=C vm_stat | grep '^Pages free:' | grep -o '[0-9]\+\.$' | cut -d'.' -f 1)
|
||||||
ram_avail_mb=$((pagesize * freepages / 1024))
|
ram_avail_mb=$((pagesize * freepages / 1024))
|
||||||
echo "pagesize ${pagesize}K, freepages ${freepages}, ram_avail_mb ${ram_avail_mb}"
|
echo "pagesize ${pagesize}K, freepages ${freepages}, ram_avail_mb ${ram_avail_mb}"
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "FIXME: ${UNAME} not supported by this script"
|
echo "FIXME: ${UNAME} not supported by this script"
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@ -93,8 +93,8 @@ esac
|
|||||||
echo "=== ${ram_avail_mb}M RAM available"
|
echo "=== ${ram_avail_mb}M RAM available"
|
||||||
ram_reserve4logs_mb=1234
|
ram_reserve4logs_mb=1234
|
||||||
if [ $ram_avail_mb -lt $ram_reserve4logs_mb ]; then
|
if [ $ram_avail_mb -lt $ram_reserve4logs_mb ]; then
|
||||||
echo "=== At least ${ram_reserve4logs_mb}Mb RAM required"
|
echo "=== At least ${ram_reserve4logs_mb}Mb RAM required"
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -117,35 +117,35 @@ fi
|
|||||||
#
|
#
|
||||||
db_size_mb=$(((ram_avail_mb - ram_reserve4logs_mb) / 4))
|
db_size_mb=$(((ram_avail_mb - ram_reserve4logs_mb) / 4))
|
||||||
if [ $db_size_mb -gt 3072 ]; then
|
if [ $db_size_mb -gt 3072 ]; then
|
||||||
db_size_mb=3072
|
db_size_mb=3072
|
||||||
fi
|
fi
|
||||||
echo "=== use ${db_size_mb}M for DB"
|
echo "=== use ${db_size_mb}M for DB"
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# 3. Create test-directory in ramfs/tmpfs, i.e. create/format/mount if required
|
# 3. Create test-directory in ramfs/tmpfs, i.e. create/format/mount if required
|
||||||
case ${UNAME} in
|
case ${UNAME} in
|
||||||
Linux)
|
Linux)
|
||||||
;;
|
;;
|
||||||
|
|
||||||
FreeBSD)
|
FreeBSD)
|
||||||
if [[ WANNA_MOUNT ]]; then
|
if [[ WANNA_MOUNT ]]; then
|
||||||
mount -t tmpfs tmpfs $TESTDB_DIR
|
mount -t tmpfs tmpfs $TESTDB_DIR
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin)
|
Darwin)
|
||||||
if [[ WANNA_MOUNT ]]; then
|
if [[ WANNA_MOUNT ]]; then
|
||||||
ramdisk_size_mb=$((42 + db_size_mb * 2 + ram_reserve4logs_mb))
|
ramdisk_size_mb=$((42 + db_size_mb * 2 + ram_reserve4logs_mb))
|
||||||
number_of_sectors=$((ramdisk_size_mb * 2048))
|
number_of_sectors=$((ramdisk_size_mb * 2048))
|
||||||
ramdev=$(hdiutil attach -nomount ram://${number_of_sectors})
|
ramdev=$(hdiutil attach -nomount ram://${number_of_sectors})
|
||||||
diskutil erasevolume ExFAT "mdx$$tst" ${ramdev}
|
diskutil erasevolume ExFAT "mdx$$tst" ${ramdev}
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "FIXME: ${UNAME} not supported by this script"
|
echo "FIXME: ${UNAME} not supported by this script"
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@ -163,105 +163,104 @@ function bit2option { local -n arr=$1; (( ($2&(1<<$3)) != 0 )) && echo -n '+' ||
|
|||||||
options=(writemap coalesce lifo notls)
|
options=(writemap coalesce lifo notls)
|
||||||
|
|
||||||
function bits2list {
|
function bits2list {
|
||||||
local -n arr=$1
|
local -n arr=$1
|
||||||
local i
|
local i
|
||||||
local list=()
|
local list=()
|
||||||
for ((i=0; i<${#arr[@]}; ++i)) do
|
for ((i=0; i<${#arr[@]}; ++i)) do
|
||||||
list[$i]=$(bit2option $1 $2 $i)
|
list[$i]=$(bit2option $1 $2 $i)
|
||||||
done
|
done
|
||||||
join , "${list[@]}"
|
join , "${list[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function probe {
|
function probe {
|
||||||
echo "=============================================== $(date)"
|
echo "=============================================== $(date)"
|
||||||
echo "${caption}: $*"
|
echo "${caption}: $*"
|
||||||
rm -f ${TESTDB_DIR}/* \
|
rm -f ${TESTDB_DIR}/* \
|
||||||
&& ${VALGRIND} ./mdbx_test --ignore-dbfull --repeat=3 --pathname=${TESTDB_DIR}/long.db "$@" --cleanup-after=no | tee >(lz4 > ${TESTDB_DIR}/long.log.lz4) | grep -e reach -e achieve \
|
&& ${VALGRIND} ./mdbx_test --ignore-dbfull --repeat=3 --pathname=${TESTDB_DIR}/long.db --cleanup-after=no "$@" | tee >(lz4 > ${TESTDB_DIR}/long.log.lz4) | grep -e reach -e achieve \
|
||||||
&& ${VALGRIND} ./mdbx_chk ${TESTDB_DIR}/long.db | tee ${TESTDB_DIR}/long-chk.log \
|
&& ${VALGRIND} ./mdbx_chk ${TESTDB_DIR}/long.db | tee ${TESTDB_DIR}/long-chk.log \
|
||||||
&& ([ ! -e ${TESTDB_DIR}/long.db-copy ] || ${VALGRIND} ./mdbx_chk ${TESTDB_DIR}/long.db-copy | tee ${TESTDB_DIR}/long-chk-copy.log) \
|
&& ([ ! -e ${TESTDB_DIR}/long.db-copy ] || ${VALGRIND} ./mdbx_chk ${TESTDB_DIR}/long.db-copy | tee ${TESTDB_DIR}/long-chk-copy.log) \
|
||||||
|| (echo "FAILED"; exit 1)
|
|| (echo "FAILED"; exit 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
count=0
|
count=0
|
||||||
for nops in 10 10000 100 1000 10000000; do
|
cases='?'
|
||||||
exp=$(expr length "$nops")
|
for nops in 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000; do
|
||||||
loops=$(( (exp < 5) ? 5 - exp : 1 ))
|
wbatch=$((nops / 10 + 1))
|
||||||
wbatch=$((nops / 10 + 1))
|
while true; do
|
||||||
while true; do
|
wbatch=$(((wbatch > 9) ? wbatch / 10 : 1))
|
||||||
wbatch=$(((wbatch > 9) ? wbatch / 10 : 1))
|
subcase=0
|
||||||
for ((rep=0; rep++ < loops; )); do
|
for ((bits=2**${#options[@]}; --bits >= 0; )); do
|
||||||
for ((bits=2**${#options[@]}; --bits >= 0; )); do
|
seed=$(($(date +%s) + RANDOM))
|
||||||
seed=$(($(date +%s) + RANDOM))
|
|
||||||
|
|
||||||
split=30
|
split=30
|
||||||
caption="Probe #$((++count)) int-key,with-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) int-key,with-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) int-key,int-data, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) int-key,int-data, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.integer --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.integer --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) with-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) with-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
|
|
||||||
split=24
|
split=24
|
||||||
caption="Probe #$((++count)) int-key,with-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) int-key,with-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) int-key,int-data, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) int-key,int-data, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.integer --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.integer --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) with-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) with-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
|
|
||||||
split=16
|
split=16
|
||||||
caption="Probe #$((++count)) int-key,w/o-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) int-key,w/o-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,-data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=1111 \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,-data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=1111 \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) int-key,with-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) int-key,with-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) int-key,int-data, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) int-key,int-data, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.integer --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.integer --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) w/o-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) w/o-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=-data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=1111 \
|
--pagesize=min --size-upper=${db_size_mb}M --table=-data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=1111 \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) with-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) with-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
|
|
||||||
split=4
|
split=4
|
||||||
caption="Probe #$((++count)) int-key,w/o-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) int-key,w/o-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,-data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=1111 \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,-data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=1111 \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) int-key,int-data, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) int-key,int-data, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.integer --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
--pagesize=min --size-upper=${db_size_mb}M --table=+key.integer,+data.integer --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=max \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
caption="Probe #$((++count)) w/o-dups, split=${split}, repeat ${rep} of ${loops}" probe \
|
caption="Probe #$((++count)) w/o-dups, split=${split}, case $((++subcase)) of ${cases}" probe \
|
||||||
--pagesize=min --size-upper=${db_size_mb}M --table=-data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=1111 \
|
--pagesize=min --size-upper=${db_size_mb}M --table=-data.dups --keygen.split=${split} --keylen.min=min --keylen.max=max --datalen.min=min --datalen.max=1111 \
|
||||||
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
--nops=$nops --batch.write=$wbatch --mode=$(bits2list options $bits) \
|
||||||
--keygen.seed=${seed} basic
|
--keygen.seed=${seed} basic
|
||||||
done # options
|
done # options
|
||||||
done # repeats
|
cases="${subcase}"
|
||||||
if [ $wbatch -eq 1 -o $((nops / wbatch)) -gt 1000 ]; then break; fi
|
if [ $wbatch -eq 1 -o $((nops / wbatch)) -gt 1000 ]; then break; fi
|
||||||
done # batch (write-ops per txn)
|
done # batch (write-ops per txn)
|
||||||
done # n-ops
|
done # n-ops
|
||||||
|
|
||||||
echo "=== ALL DONE ====================== $(date)"
|
echo "=== ALL DONE ====================== $(date)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user