1#!/bin/sh
   2test_description="Tests history walking performance"
   4. ./perf-lib.sh
   6test_perf_default_repo
   8test_perf 'rev-list --all' '
  10        git rev-list --all >/dev/null
  11'
  12test_perf 'rev-list --all --objects' '
  14        git rev-list --all --objects >/dev/null
  15'
  16test_expect_success 'create new unreferenced commit' '
  18        commit=$(git commit-tree HEAD^{tree} -p HEAD)
  19'
  20test_perf 'rev-list $commit --not --all' '
  22        git rev-list $commit --not --all >/dev/null
  23'
  24test_perf 'rev-list --objects $commit --not --all' '
  26        git rev-list --objects $commit --not --all >/dev/null
  27'
  28test_done