Imported Upstream version 2.27.0
[platform/upstream/git.git] / t / perf / p9300-fast-import-export.sh
1 #!/bin/sh
2
3 test_description='test fast-import and fast-export performance'
4 . ./perf-lib.sh
5
6 test_perf_default_repo
7
8 # Use --no-data here to produce a vastly smaller export file.
9 # This is much cheaper to work with but should still exercise
10 # fast-import pretty well (we'll still process all commits and
11 # trees, which account for 60% or more of objects in most repos).
12 #
13 # Use --reencode to avoid the default of aborting on non-utf8 commits,
14 # which lets this test run against a wider variety of sample repos.
15 test_perf 'export (no-blobs)' '
16         git fast-export --reencode=yes --no-data HEAD >export
17 '
18
19 test_perf 'import (no-blobs)' '
20         git fast-import --force <export
21 '
22
23 test_done