blob: 586161e9adcdb1d09469357ab0b6d87b5a851b6f [file] [log] [blame]
Jeff Kingd8410a82020-04-06 15:49:40 -04001#!/bin/sh
2
3test_description='test fast-import and fast-export performance'
4. ./perf-lib.sh
5
6test_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.
15test_perf 'export (no-blobs)' '
16 git fast-export --reencode=yes --no-data HEAD >export
17'
18
19test_perf 'import (no-blobs)' '
20 git fast-import --force <export
21'
22
23test_done