git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/guid/doc.go (about) 1 // Package guid helps generate and parse GUIDs. 2 // 3 // GUIDs are similar to UUIDs (RFC 4122) but use are encoded using base32 to be more user-friendly. 4 // 5 // A GUID is a 16 byte (128 bit) array and is compatible with standard UUIDs which is handy if you 6 // need to interoperate with other systems. 7 // GUID are stored in databases as a 16 byte array and thus can leverage native UUID types for better 8 // performances. 9 // 10 // go test -bench=. 11 // pkg: git.sr.ht/~pingoo/stdx/guid 12 // BenchmarkNewRandomPool/goroutines-4-4 12655129 94.50 ns/op 13 // BenchmarkNewRandomPool/goroutines-40-4 12680683 93.89 ns/op 14 // BenchmarkNewRandomPool/goroutines-2000-4 12629418 94.45 ns/op 15 // BenchmarkNewRandomPool/goroutines-4000-4 12702556 94.73 ns/op 16 // BenchmarkNewRandomPool/goroutines-8000-4 12450429 95.09 ns/op 17 // BenchmarkNewRandomReader/goroutines-40-4 6811862 154.2 ns/op 18 // BenchmarkNewRandomReader/goroutines-2000-4 6851259 165.7 ns/op 19 // BenchmarkNewRandomReader/goroutines-4000-4 7351102 158.5 ns/op 20 // BenchmarkNewRandomReader/goroutines-8000-4 7219173 154.8 ns/op 21 // BenchmarkNewRandomReader/goroutines-40000-4 7054268 159.7 ns/op 22 package guid