mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:04:12 +08:00
mdbx-test: don't use --speculum
option for nops > 10K.
Change-Id: I431e2de1882fab8a176b51aa9aa19cb409559181
This commit is contained in:
parent
a159ae4b06
commit
c9f461c4eb
@ -176,7 +176,7 @@ function probe {
|
||||
echo "----------------------------------------------- $(date)"
|
||||
echo "${caption}: $*"
|
||||
rm -f ${TESTDB_DIR}/* \
|
||||
&& ${VALGRIND} ./mdbx_test --speculum --ignore-dbfull --repeat=3 --pathname=${TESTDB_DIR}/long.db --cleanup-after=no "$@" \
|
||||
&& ${VALGRIND} ./mdbx_test ${speculum} --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 \
|
||||
&& ([ ! -e ${TESTDB_DIR}/long.db-copy ] || ${VALGRIND} ./mdbx_chk ${TESTDB_DIR}/long.db-copy | tee ${TESTDB_DIR}/long-chk-copy.log) \
|
||||
@ -190,6 +190,7 @@ cases='?'
|
||||
for nops in 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000; do
|
||||
echo "======================================================================="
|
||||
wbatch=$((nops / 10 + 1))
|
||||
speculum=$([ $nops -le 1000 ] && echo '--speculum' || true)
|
||||
while true; do
|
||||
echo "======================================================================="
|
||||
banner "$nops / $wbatch"
|
||||
|
Loading…
x
Reference in New Issue
Block a user