3 test_description='performance of fetches from bitmapped packs'
8 test_expect_success 'create bitmapped server repo' '
9 git config pack.writebitmaps true &&
13 # simulate a fetch from a repository that last fetched N days ago, for
14 # various values of N. We do so by following the first-parent chain,
15 # and assume the first entry in the chain that is N days older than the current
16 # HEAD is where the HEAD would have been then.
17 for days in 1 2 4 8 16 32 64 128; do
18 title=$(printf '%10s' "($days days)")
19 test_expect_success "setup revs from $days days ago" '
20 now=$(git log -1 --format=%ct HEAD) &&
21 then=$(($now - ($days * 86400))) &&
22 tip=$(git rev-list -1 --first-parent --until=$then HEAD) &&
29 test_perf "server $title" '
30 git pack-objects --stdout --revs \
31 --thin --delta-base-offset \
35 test_size "size $title" '
39 test_perf "client $title" '
40 git index-pack --stdin --fix-thin <tmp.pack