| 1 | #!/bin/sh |
| 2 | |
| 3 | test_description='last-modified perf tests' |
| 4 | . ./perf-lib.sh |
| 5 | |
| 6 | test_perf_default_repo |
| 7 | |
| 8 | test_perf 'top-level last-modified' ' |
| 9 | git last-modified HEAD |
| 10 | ' |
| 11 | |
| 12 | test_perf 'top-level recursive last-modified' ' |
| 13 | git last-modified -r HEAD |
| 14 | ' |
| 15 | |
| 16 | test_perf 'subdir last-modified' ' |
| 17 | git ls-tree -d HEAD >subtrees && |
| 18 | path="$(head -n 1 subtrees | cut -f2)" && |
| 19 | git last-modified -r HEAD -- "$path" |
| 20 | ' |
| 21 | |
| 22 | test_done |