Skip to content

Commit

Permalink
TEMP: perf test scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Derrick Stolee <[email protected]>
  • Loading branch information
derrickstolee committed Jul 8, 2024
1 parent 739ae27 commit 218acd3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions t/perf/p1500-graph-walks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ test_expect_success 'setup' '
echo tag-$ref ||
return 1
done >tags &&
echo "A:HEAD" >test-tool-refs &&
for line in $(cat refs)
do
echo "X:$line" >>test-tool-refs || return 1
done &&
echo "A:HEAD" >test-tool-tags &&
for line in $(cat tags)
do
echo "X:$line" >>test-tool-tags || return 1
done &&
git commit-graph write --reachable
'

Expand Down Expand Up @@ -47,4 +58,16 @@ test_perf 'contains: git tag --merged' '
xargs git tag --merged=HEAD <tags
'

test_perf 'is-base check: test-tool reach (refs)' '
test-tool reach get_branch_base_for_tip <test-tool-refs
'

test_perf 'is-base check: test-tool reach (tags)' '
test-tool reach get_branch_base_for_tip <test-tool-tags
'

test_perf 'is-base check: git for-each-ref' '
git for-each-ref --format="%(is-base:HEAD)" --stdin <refs
'

test_done

0 comments on commit 218acd3

Please sign in to comment.