Jeff King | 348d4f2 | 2015-11-06 01:24:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | test_description='performance of filter-branch' |
| 4 | . ./perf-lib.sh |
| 5 | |
| 6 | test_perf_default_repo |
| 7 | test_checkout_worktree |
| 8 | |
| 9 | test_expect_success 'mark bases for tests' ' |
| 10 | git tag -f tip && |
| 11 | git tag -f base HEAD~100 |
| 12 | ' |
| 13 | |
| 14 | test_perf 'noop filter' ' |
| 15 | git checkout --detach tip && |
| 16 | git filter-branch -f base..HEAD |
| 17 | ' |
| 18 | |
Devin J. Pohly | 32da746 | 2017-02-23 02:27:36 -0600 | [diff] [blame] | 19 | test_perf 'noop prune-empty' ' |
| 20 | git checkout --detach tip && |
| 21 | git filter-branch -f --prune-empty base..HEAD |
| 22 | ' |
| 23 | |
Jeff King | 348d4f2 | 2015-11-06 01:24:29 -0500 | [diff] [blame] | 24 | test_done |