ProductPromotion
Logo

Go.Lang

made by https://0x3d.site

GitHub - rekby/fastuuid: Fast implementation for uuid
Fast implementation for uuid. Contribute to rekby/fastuuid development by creating an account on GitHub.
Visit Site

GitHub - rekby/fastuuid: Fast implementation for uuid

GitHub - rekby/fastuuid: Fast implementation for uuid

PkgGoDev Go Report Card codecov

Fast uuid library, now implemented only UUIDv4 (crypto-random) generators. It generate UUID to string about 50-100ns with one allocation and good paralellism by cpu.

Command for install:

go get github.com/rekby/fastuuid

Example:

package main

import "github.com/rekby/fastuuid"

func main(){
	fmt.Println(fastuuid.MustUUIDv4String())
}

For run benchmarks:

git clone https://github.com/rekby/fastuuid.git
cd fastuuid/benchmarks
go test -test.bench=. -v

Result for macbook pro M1:

goos: darwin
goarch: arm64
pkg: github.com/rekby/fastuuid/benchmarks
BenchmarkRekbyUUID/one-thread                                        13688407               85.92 ns/op            48 B/op          1 allocs/op
BenchmarkRekbyUUID/multi-thread                                      25657815               51.81 ns/op            47 B/op          0 allocs/op
BenchmarkGoogleUUID4/one-thread                                       2256043               530.5 ns/op            64 B/op          2 allocs/op
BenchmarkGoogleUUID4/multi-thread                                     1897683               634.9 ns/op            63 B/op          1 allocs/op
BenchmarkSatoriUUID4/one-thread                                       2277092               531.1 ns/op            64 B/op          2 allocs/op
BenchmarkSatoriUUID4/multi-thread                                     1950952               624.3 ns/op            62 B/op          1 allocs/op
BenchmarkGofrs/one-thread                                             2265781               530.3 ns/op            64 B/op          2 allocs/op
BenchmarkGofrs/multi-thread                                           1912966               635.9 ns/op            63 B/op          1 allocs/op
BenchmarkRogpeppeUnsecuredBecauseItCounter/one-thread                28806307               40.35 ns/op            48 B/op          1 allocs/op
BenchmarkRogpeppeUnsecuredBecauseItCounter/multi-thread               7198768               168.0 ns/op            47 B/op          0 allocs/op
BenchmarkJakehl/one-thread                                            1956322               611.8 ns/op           144 B/op          5 allocs/op
BenchmarkJakehl/multi-thread                                          1963675               643.4 ns/op           142 B/op          4 allocs/op
BenchmarkRwxrob/one-thread                                            1620858               740.5 ns/op           184 B/op          7 allocs/op
BenchmarkRwxrob/multi-thread                                          1870315               644.6 ns/op           182 B/op          6 allocs/op

Articles
to learn more about the golang concepts.

Resources
which are currently available to browse on.

mail [email protected] to add your project or resources here ๐Ÿ”ฅ.

FAQ's
to know more about the topic.

mail [email protected] to add your project or resources here ๐Ÿ”ฅ.

Queries
or most google FAQ's about GoLang.

mail [email protected] to add more queries here ๐Ÿ”.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory