Imported Upstream version 2.27.0
[platform/upstream/git.git] / t / perf / p5310-pack-bitmaps.sh
index 7743f4f..b3e725f 100755 (executable)
@@ -31,10 +31,6 @@ test_perf 'simulated fetch' '
        } | git pack-objects --revs --stdout >/dev/null
 '
 
-test_perf 'pack to file' '
-       git pack-objects --all pack1 </dev/null >/dev/null
-'
-
 test_perf 'pack to file (bitmap)' '
        git pack-objects --use-bitmap-index --all pack1b </dev/null >/dev/null
 '
@@ -57,6 +53,11 @@ test_perf 'rev-list count with blob:limit=1k' '
                --filter=blob:limit=1k >/dev/null
 '
 
+test_perf 'rev-list count with tree:0' '
+       git rev-list --use-bitmap-index --count --objects --all \
+               --filter=tree:0 >/dev/null
+'
+
 test_perf 'simulated partial clone' '
        git pack-objects --stdout --all --filter=blob:none </dev/null >/dev/null
 '
@@ -90,4 +91,9 @@ test_perf 'pack to file (partial bitmap)' '
        git pack-objects --use-bitmap-index --all pack2b </dev/null >/dev/null
 '
 
+test_perf 'rev-list with tree filter (partial bitmap)' '
+       git rev-list --use-bitmap-index --count --objects --all \
+               --filter=tree:0 >/dev/null
+'
+
 test_done