about summary refs log tree commit diff
path: root/third_party/git/t/perf/p9300-fast-import-export.sh
blob: 586161e9adcdb1d09469357ab0b6d87b5a851b6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

test_description='test fast-import and fast-export performance'
. ./perf-lib.sh

test_perf_default_repo

# Use --no-data here to produce a vastly smaller export file.
# This is much cheaper to work with but should still exercise
# fast-import pretty well (we'll still process all commits and
# trees, which account for 60% or more of objects in most repos).
#
# Use --reencode to avoid the default of aborting on non-utf8 commits,
# which lets this test run against a wider variety of sample repos.
test_perf 'export (no-blobs)' '
	git fast-export --reencode=yes --no-data HEAD >export
'

test_perf 'import (no-blobs)' '
	git fast-import --force <export
'

test_done