mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:24:12 +08:00
mdbx-test: cosmetics (use banner) for long-stochastic.
This commit is contained in:
parent
f7b8b699b8
commit
02ebd4db78
@ -1,6 +1,6 @@
|
|||||||
#!/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 banner >/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 banner" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ function bits2list {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function probe {
|
function probe {
|
||||||
echo "=============================================== $(date)"
|
echo "----------------------------------------------- $(date)"
|
||||||
echo "${caption}: $*"
|
echo "${caption}: $*"
|
||||||
rm -f ${TESTDB_DIR}/* \
|
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 "$@" \
|
||||||
@ -188,9 +188,12 @@ function probe {
|
|||||||
count=0
|
count=0
|
||||||
cases='?'
|
cases='?'
|
||||||
for nops in 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000; do
|
for nops in 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000; do
|
||||||
|
echo "======================================================================="
|
||||||
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))
|
||||||
|
echo "======================================================================="
|
||||||
|
banner "$nops / $wbatch"
|
||||||
subcase=0
|
subcase=0
|
||||||
for ((bits=2**${#options[@]}; --bits >= 0; )); do
|
for ((bits=2**${#options[@]}; --bits >= 0; )); do
|
||||||
seed=$(($(date +%s) + RANDOM))
|
seed=$(($(date +%s) + RANDOM))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user