Format a text in GO better then fmt
Looking at the article title, we should clarify what means better and what is text formatting. Lets...
For further actions, you may consider blocking this person and/or reporting abuse
I've tried it:
and the result on my machine (mac M3):
Normal seems faster and less allocations
@marcello_h, Repo contains benchmarks, my screenshots were obtained on
i7CPU by running on a single core as follows (also running on another machine oni5):go test -bench=Format -benchmem -cpu 1go test -bench=Fmt -benchmem -cpu 1I've runned with large statistic
~100 times, and i could say that these vales ratio persists, andsfis faster thanfmt