BenchmarkFormat provides performance numbers for the strconv.FormatInt function.
(b *testing.B)
| 24 | // BenchmarkFormat provides performance numbers for the |
| 25 | // strconv.FormatInt function. |
| 26 | func BenchmarkFormat(b *testing.B) { |
| 27 | number := int64(10) |
| 28 | |
| 29 | b.ResetTimer() |
| 30 | |
| 31 | for i := 0; i < b.N; i++ { |
| 32 | strconv.FormatInt(number, 10) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // BenchmarkItoa provides performance numbers for the |
| 37 | // strconv.Itoa function. |
nothing calls this directly
no outgoing calls
no test coverage detected