util.ToLower is 3x faster than strings.ToLower.
(b *testing.B)
| 19 | |
| 20 | // util.ToLower is 3x faster than strings.ToLower. |
| 21 | func BenchmarkToLowerInternal(b *testing.B) { |
| 22 | str := "AaBbCcDdEeFfGgHhIiJjKk" |
| 23 | for i := 0; i < b.N; i++ { |
| 24 | _ = ToLower(str) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func TestToLower(t *testing.T) { |
| 29 | It("toLower", func() { |