Skip to content

testing golang direct print vs. string concatenating

Notifications You must be signed in to change notification settings

PFtyrant/write_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

write_test

go test -v -run=BENCH -bench=. -benchmem
goos: linux
goarch: amd64
pkg: awesomeProject
BenchmarkPrintln
BenchmarkPrintln-4                 87802             13421 ns/op              80 B/op          5 allocs/op
BenchmarkConcat
BenchmarkConcat-4                 377556              3178 ns/op              48 B/op          6 allocs/op
BenchmarkConcatOneLine
BenchmarkConcatOneLine-4          364741              2960 ns/op              32 B/op          2 allocs/op
PASS
ok      awesomeProject  4.678s

About

testing golang direct print vs. string concatenating

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages