(b *testing.B)
| 360 | } |
| 361 | |
| 362 | func BenchmarkSort(b *testing.B) { |
| 363 | ids1 := [101]KSUID{} |
| 364 | ids2 := [101]KSUID{} |
| 365 | |
| 366 | for i := range ids1 { |
| 367 | ids1[i] = New() |
| 368 | } |
| 369 | |
| 370 | for i := 0; i != b.N; i++ { |
| 371 | ids2 = ids1 |
| 372 | Sort(ids2[:]) |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | func BenchmarkNew(b *testing.B) { |
| 377 | b.Run("with crypto rand", func(b *testing.B) { |