read-cache: add simple performance test
commit1ecb5ff141f6e54727c746446b52af51016e662c
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 9 Jun 2013 17:39:17 +0000 (9 19:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jun 2013 00:03:00 +0000 (9 17:03 -0700)
treee2b77c617509a40cc37941d3a3bbb8821b65aba1
parentedca4152560522a431a51fc0a06147fc680b5b18
read-cache: add simple performance test

Add the helper test-read-cache, which can be used to call read_cache and
discard_cache in a loop as well as a performance check based on it.

Signed-off-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Makefile
t/perf/p0002-read-cache.sh [new file with mode: 0755]
test-read-cache.c [new file with mode: 0644]