t/perf: add basic perf tests for delta base cache
commitc7df68cbca75232f7843a7d70c58a0e98decef91
authorJeff King <peff@peff.net>
Mon, 22 Aug 2016 22:01:10 +0000 (22 18:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Aug 2016 22:26:16 +0000 (23 15:26 -0700)
treed02dcfd3708c53801ae43e5926b0496079c8a452
parent8261e1f139db3f8aa6f9fd7d98c876cbeb0f927c
t/perf: add basic perf tests for delta base cache

This just shows off the improvements done by the last few
patches, and gives us a baseline for noticing regressions in
the future. Here are the results with linux.git as the perf
"large repo":

Test                origin                HEAD
-------------------------------------------------------------------
0003.1: log --raw   43.41(40.36+2.69)     33.86(30.96+2.41) -22.0%
0003.2: log -S      313.61(309.74+3.78)   298.75(295.58+3.00) -4.7%

(for a large repo, the "log -S" improvements are greater if
you bump the delta base cache limit, but I think it makes
sense to test the "stock" behavior, since that is what most
people will see).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p0003-delta-base-cache.sh [new file with mode: 0755]