mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
![René Scharfe](/assets/img/avatar_default.png)
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>
15 lines
211 B
Bash
Executable file
15 lines
211 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description="Tests performance of reading the index"
|
|
|
|
. ./perf-lib.sh
|
|
|
|
test_perf_default_repo
|
|
|
|
count=1000
|
|
test_perf "read_cache/discard_cache $count times" "
|
|
test-read-cache $count
|
|
"
|
|
|
|
test_done
|