Performance Focused
Detailed breakdown of nanoseconds per operation, memory allocations, and throughput.
Real-world Patterns
Benchmarks based on common scenarios developers face daily, not just theoretical loops.
Data Driven
Objective data generated from standard Go benchmarks running on consistent hardware.
Go Benchmarks
Explore our growing collection of Go performance comparisons. Data-driven benchmark insights to help you write more efficient Go code.
Array vs Slice
Compare fixed-size arrays, pre-allocated slices, and dynamically grown slices.
arraysliceallocation
Concurrent Map Access
A benchmark to compare the performance of different concurrent map access implementations in Go.
mapconcurrencysync
Counter
A benchmark to compare the performance of different counter implementations in Go.
counteratomicmutexconcurrency
Int to String
Compare integer-to-string conversion methods in Go's standard library.
formattingconversionstringint+1
Interface vs Direct Method Call
A benchmark to compare the performance of interface vs direct method calls in Go.
interfacestruct
JSON Struct vs Map
Comparing JSON serialization performance between typed structs and generic maps (map[string]any).
jsonserializationstructmap+1
Printing
Comparing the performance of different fmt printing functions in Go.
fmtprintio
String Concatination
Comparing string concatenation approaches in Go — from the naive + operator to strings.Builder and beyond.
stringconcatinationappendbuilder+1
String Matching
Compare string matching approaches in Go.
stringsmatchingregexpregex+1
Type Assertions
Comparing type assertion, type switch, reflection, and comma-ok checks on interfaces.
type-assertiontype-switchreflectioninterface