1#!/bin/sh23test_description='Test operations that emphasize the delta base cache.45We look at both "log --raw", which should put only trees into the delta cache,6and "log -Sfoo --raw", which should look at both trees and blobs.78Any effects will be emphasized if the test repository is fully packed (loose9objects obviously do not use the delta base cache at all). It is also10emphasized if the pack has long delta chains (e.g., as produced by "gc11--aggressive"), though cache is still quite noticeable even with the default12depth of 50.1314The setting of core.deltaBaseCacheLimit in the source repository is also15relevant (depending on the size of your test repo), so be sure it is consistent16between runs.17'18. ./perf-lib.sh1920test_perf_large_repo2122# puts mostly trees into the delta base cache23test_perf 'log --raw' '24git log --raw >/dev/null25'2627test_perf 'log -S' '28git log --raw -Sfoo >/dev/null29'3031test_done