Skip to content

Instantly share code, notes, and snippets.

@CodeMonkeyKevin
Created September 1, 2013 20:26
Show Gist options
  • Save CodeMonkeyKevin/6407086 to your computer and use it in GitHub Desktop.
Save CodeMonkeyKevin/6407086 to your computer and use it in GitHub Desktop.
GoLang UUID pkgs benchmark
// github.com/nu7hatch/gouuid
BenchmarkV4 1000000 1426 ns/op
BenchmarkV5 2000000 910 ns/op
// github.com/streadway/simpleuuid
BenchmarkV5 5000000 689 ns/op
// github.com/tux21b/gocql/tree/master/uuid
BenchmarkRandomUUID 1000000 1470 ns/op
// github.com/germ/go-bits/blob/master/puuid
BenchmarkGenerate 100000 15327 ns/op
// github.com/go-contrib/uuid
BenchmarkNewV1 50000000 68.8 ns/op
BenchmarkNewV2 50000000 70.6 ns/op
BenchmarkNewV3 2000000 815 ns/op
BenchmarkNewV4 1000000 1422 ns/op
BenchmarkNewV5 2000000 935 ns/op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment