The result is equivalent but a micro-benchmark shows that pkg io is 3x faster.
go version go1.12.2 windows/amd64 pkg: github.com/iWdGo/GoCompilerEfficiency/src/writestring BenchmarkFmtWriteString-4 500000 2002 ns/op BenchmarkIoWriteString-4 2000000 635 ns/op PASS This is irrelevant is the string requires some build. (sorry for the typo above) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.