Fossil SCM

fossil-scm / cache-speedups-test / test-integrity.sh
Blame History Raw 18 lines
1
#!/bin/sh
2
# Throw-away cache size test scripts by Dan Shearer, Sep 2026
3
# Needs ../fossil built from the cache-speedups branch
4
set -eu
5
unset FOSSIL_SQLCACHE
6
7
repository=${1:?usage: $0 repository.fossil}
8
copy=${TMPDIR:-/tmp}/${repository##*/}
9
printf 'command\trepetition\tcache_n\telapsed\tuser\tsystem\tmax_rss_kb\n'
10
for repetition in $(seq 1 "${REPEATS:-3}"); do
11
for n in $(printf '%s\n' ${CACHE_VALUES:-500 1000 1500 2000 3000 5000} | shuf); do
12
export FOSSIL_CACHE_N=$n FOSSIL_CACHE_SZ=${CACHE_SZ:-1000000000}
13
cp "$repository" "$copy"
14
/usr/bin/time -f "test-integrity\t$repetition\t$n\t%e\t%U\t%S\t%M" \
15
../fossil test-integrity -R "$copy" >/dev/null
16
done
17
done
18

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button