- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkSlicesSortStrings_Sorted (0.18 sec)
-
src/sort/sort_slices_benchmark_test.go
} } func BenchmarkSortStrings_Sorted(b *testing.B) { ss := makeSortedStrings(N) b.ResetTimer() for i := 0; i < b.N; i++ { Sort(StringSlice(ss)) } } func BenchmarkSlicesSortStrings_Sorted(b *testing.B) { ss := makeSortedStrings(N) b.ResetTimer() for i := 0; i < b.N; i++ { slices.Sort(ss) } } // These benchmarks compare sorting a slice of structs with sort.Sort vs.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 22:59:40 UTC 2024 - 4K bytes - Viewed (0)