go/src/sort/sort_slices_benchmark_test.go

func makeRandomInts(n int) []int {}

func makeSortedInts(n int) []int {}

func makeReversedInts(n int) []int {}

func makeSortedStrings(n int) []string {}

const N

func BenchmarkSortInts(b *testing.B) {}

func BenchmarkSlicesSortInts(b *testing.B) {}

func BenchmarkSortIsSorted(b *testing.B) {}

func BenchmarkSlicesIsSorted(b *testing.B) {}

// makeRandomStrings generates n random strings with alphabetic runes of
// varying lengths.
func makeRandomStrings(n int) []string {}

func BenchmarkSortStrings(b *testing.B) {}

func BenchmarkSlicesSortStrings(b *testing.B) {}

func BenchmarkSortStrings_Sorted(b *testing.B) {}

func BenchmarkSlicesSortStrings_Sorted(b *testing.B) {}

type myStruct

type myStructs

func (s myStructs) Len() int           {}

func (s myStructs) Less(i, j int) bool {}

func (s myStructs) Swap(i, j int)      {}

func makeRandomStructs(n int) myStructs {}

func TestStructSorts(t *testing.T) {}

func BenchmarkSortStructs(b *testing.B) {}

func BenchmarkSortFuncStructs(b *testing.B) {}