interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / perf / p9300-fast-import-export.sh

23 lines · 678 bytes Raw Blame History
1#!/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