https://github.com/nickng/go-overhead-benchmarks
Go overhead measurements
https://github.com/nickng/go-overhead-benchmarks
golang perf
Last synced: about 1 year ago
JSON representation
Go overhead measurements
- Host: GitHub
- URL: https://github.com/nickng/go-overhead-benchmarks
- Owner: nickng
- License: mit
- Created: 2018-10-26T17:09:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T17:51:12.000Z (over 7 years ago)
- Last Synced: 2025-02-15T05:13:54.632Z (over 1 year ago)
- Topics: golang, perf
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-overhead-benchmarks
Various overhead comparison benchmarks, for guiding
design decisions when using Go as implementation language.
## Interface overhead
Tests the overhead of using interface instead of a native type as a map key.
The interface would be used to abstract both a primitive type and a struct.
BenchmarkIfaceOverheadNativePrimitive
BenchmarkIfaceOverheadNativeStruct
BenchmarkIfaceOverheadIfacePrimitive
BenchmarkIfaceOverheadIfaceStruct
## String construction
Tests which way of string construction is the fastest.
BenchmarkStringConcat
BenchmarkStringSprintf
BenchmarkStringByteBuf
BenchmarkStringStringBuilder
(Concat < StringBuilder < ByteBuf < Sprintf)