Skip to content
Tiny collection of micro benchmarks.
Branch: master
Clone or download
Latest commit 5044e40 Mar 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Initial commit. Apr 5, 2014
atomic_test.go Additional benchmarks. Mar 2, 2019
channel_test.go
closure_test.go Adding goroutine test. Oct 27, 2014
func_test.go Fix function benchmarks. Jan 3, 2019
goroutine_test.go Adding goroutine test. Oct 27, 2014
if_test.go Adding goroutine test. Oct 27, 2014
interface_test.go Adding goroutine test. Oct 27, 2014
mutator.go
mutex_test.go
primitive_test.go Additional benchmarks. Mar 2, 2019
struct_test.go Adding goroutine test. Oct 27, 2014
switch_test.go Adding goroutine test. Oct 27, 2014
type_assert_test.go Adding goroutine test. Oct 27, 2014
varargs_test.go Add varargs test. Nov 18, 2014

README.md

Golang Benchmarks

This is a tiny collection of micro benchmarks.

The intent is to compare some language feature to others.

The original benchmark arose from a simple question:

Suppose a runtime parameter is dynamic, but generically fixed.

  • Is it best to build a new closure when it changes?
  • Or simply evaluate the parameter in an if, continuously?
  • Or should we write generic types, and use an interface?

Running

To run the suite, use:

go test -bench=.
You can’t perform that action at this time.