summaryrefslogtreecommitdiff
path: root/builtin-count-objects.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2009-08-09 04:39:45 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-08-09 10:50:32 -0700
commitf423ef5f2bec35efbc328f02e468a18612970242 (patch)
treefd02a26d72f20979563fb76981f35661b6bc003e /builtin-count-objects.c
parenttests: provide $TRASH_DIRECTORY variable (diff)
downloadtgif-f423ef5f2bec35efbc328f02e468a18612970242.tar.xz
tests: allow user to specify trash directory location
The tests generate a large amount of I/O activity creating and destroying repositories and files. We can improve the time it takes to run the test suite by creating trash directories on filesystems with better performance characteristic, even though we may not want the rest of the git repository on those filesystems (e.g., because they are not network connected, or because they are temporary ramdisks). For example, on a dual processor system: $ cd t && time make -j32 real 1m51.562s user 0m59.260s sys 1m20.933s # /dev/shm is tmpfs $ cd t && time make -j32 GIT_TEST_OPTS="--root=/dev/shm" real 1m1.484s user 0m53.555s sys 1m5.264s We almost halve the wall clock time, and we utilize the dual processors much better. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-count-objects.c')
0 files changed, 0 insertions, 0 deletions