Use fmt in BenchmarkSprintf.
This commit is contained in:
parent
b5abe68bf5
commit
9e41d2fd92
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
package varfmt
|
package varfmt
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
@ -106,7 +107,7 @@ func BenchmarkSprintf(b *testing.B) {
|
||||||
b.ReportAllocs()
|
b.ReportAllocs()
|
||||||
|
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
_ = Sprintf(tc.format, tc.args...)
|
_ = fmt.Sprintf(tc.format, tc.args...)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue