Skip to content

Instantly share code, notes, and snippets.

@prashantv
Created November 14, 2017 19:54
Show Gist options
  • Save prashantv/4360013d6ec13b16ff983390e5defe73 to your computer and use it in GitHub Desktop.
Save prashantv/4360013d6ec13b16ff983390e5defe73 to your computer and use it in GitHub Desktop.
> go test -bench .
goos: darwin
goarch: amd64
pkg: go.uber.org/atomic
BenchmarkStress/u32/std/serial-8 50000000 42.0 ns/op
BenchmarkStress/u32/std/parallel-8 10000000 173 ns/op
BenchmarkStress/u32/serial-8 30000000 42.9 ns/op
BenchmarkStress/u32/parallel-8 10000000 173 ns/op
BenchmarkStress/f64/serial-8 30000000 46.3 ns/op
BenchmarkStress/f64/parallel-8 5000000 359 ns/op
BenchmarkStress/bool/serial-8 50000000 40.5 ns/op
BenchmarkStress/bool/parallel-8 10000000 158 ns/op
BenchmarkStress/i32/std/serial-8 50000000 41.7 ns/op
BenchmarkStress/i32/std/parallel-8 10000000 174 ns/op
BenchmarkStress/i32/serial-8 30000000 41.2 ns/op
BenchmarkStress/i32/parallel-8 10000000 176 ns/op
BenchmarkStress/i64/std/serial-8 30000000 40.7 ns/op
BenchmarkStress/i64/std/parallel-8 10000000 173 ns/op
BenchmarkStress/string/serial-8 20000000 97.2 ns/op
BenchmarkStress/string/parallel-8 20000000 100 ns/op
BenchmarkStress/i64/serial-8 50000000 40.0 ns/op
BenchmarkStress/i64/parallel-8 10000000 175 ns/op
BenchmarkStress/u64/std/serial-8 30000000 41.0 ns/op
BenchmarkStress/u64/std/parallel-8 10000000 173 ns/op
BenchmarkStress/u64/serial-8 30000000 40.5 ns/op
BenchmarkStress/u64/parallel-8 10000000 175 ns/op
PASS
ok go.uber.org/atomic 39.753s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment