MCPcopy
hub / github.com/go-git/go-git / BenchmarkStatusLarge

Function BenchmarkStatusLarge

worktree_status_bench_test.go:157–167  ·  view source on GitHub ↗

BenchmarkStatusLarge benchmarks Status() on a large repository with 5000 files.

(b *testing.B)

Source from the content-addressed store, hash-verified

155
156// BenchmarkStatusLarge benchmarks Status() on a large repository with 5000 files.
157func BenchmarkStatusLarge(b *testing.B) {
158 const (
159 numFiles = 5000
160 numSubdirs = 20
161 numGoroutines = 10
162 )
163
164 wt := setupBenchmarkRepo(b, numFiles, numSubdirs, numGoroutines)
165
166 b.Run("Clean", benchmarkStatusClean(wt))
167}

Callers

nothing calls this directly

Calls 2

setupBenchmarkRepoFunction · 0.85
benchmarkStatusCleanFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…