go/src/sync/map_bench_test.go

type bench

func benchMap(b *testing.B, bench bench) {}

func BenchmarkLoadMostlyHits(b *testing.B) {}

func BenchmarkLoadMostlyMisses(b *testing.B) {}

func BenchmarkLoadOrStoreBalanced(b *testing.B) {}

func BenchmarkLoadOrStoreUnique(b *testing.B) {}

func BenchmarkLoadOrStoreCollision(b *testing.B) {}

func BenchmarkLoadAndDeleteBalanced(b *testing.B) {}

func BenchmarkLoadAndDeleteUnique(b *testing.B) {}

func BenchmarkLoadAndDeleteCollision(b *testing.B) {}

func BenchmarkRange(b *testing.B) {}

// BenchmarkAdversarialAlloc tests performance when we store a new value
// immediately whenever the map is promoted to clean and otherwise load a
// unique, missing key.
//
// This forces the Load calls to always acquire the map's mutex.
func BenchmarkAdversarialAlloc(b *testing.B) {}

// BenchmarkAdversarialDelete tests performance when we periodically delete
// one key and add a different one in a large map.
//
// This forces the Load calls to always acquire the map's mutex and periodically
// makes a full copy of the map despite changing only one entry.
func BenchmarkAdversarialDelete(b *testing.B) {}

func BenchmarkDeleteCollision(b *testing.B) {}

func BenchmarkSwapCollision(b *testing.B) {}

func BenchmarkSwapMostlyHits(b *testing.B) {}

func BenchmarkSwapMostlyMisses(b *testing.B) {}

func BenchmarkCompareAndSwapCollision(b *testing.B) {}

func BenchmarkCompareAndSwapNoExistingKey(b *testing.B) {}

func BenchmarkCompareAndSwapValueNotEqual(b *testing.B) {}

func BenchmarkCompareAndSwapMostlyHits(b *testing.B) {}

func BenchmarkCompareAndSwapMostlyMisses(b *testing.B) {}

func BenchmarkCompareAndDeleteCollision(b *testing.B) {}

func BenchmarkCompareAndDeleteMostlyHits(b *testing.B) {}

func BenchmarkCompareAndDeleteMostlyMisses(b *testing.B) {}

func BenchmarkClear(b *testing.B) {}