t / perf / p0001-rev-list.shon commit upload-pack: support hidden refs with protocol v2 (e20b419)
   1#!/bin/sh
   2
   3test_description="Tests history walking performance"
   4
   5. ./perf-lib.sh
   6
   7test_perf_default_repo
   8
   9test_perf 'rev-list --all' '
  10        git rev-list --all >/dev/null
  11'
  12
  13test_perf 'rev-list --all --objects' '
  14        git rev-list --all --objects >/dev/null
  15'
  16
  17test_expect_success 'create new unreferenced commit' '
  18        commit=$(git commit-tree HEAD^{tree} -p HEAD) &&
  19        test_export commit
  20'
  21
  22test_perf 'rev-list $commit --not --all' '
  23        git rev-list $commit --not --all >/dev/null
  24'
  25
  26test_perf 'rev-list --objects $commit --not --all' '
  27        git rev-list --objects $commit --not --all >/dev/null
  28'
  29
  30test_done