Skip to content
/ com Public

This is an open source project for commonly used functions for the Go programming language.

License

Notifications You must be signed in to change notification settings

appleboy/com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common Functions

Run Tests GoDoc codecov Go Report Card

This is an open source project for commonly used functions for the Go programming language.

Feature

  • Random
  • Array
  • File
  • Convert

Benchmrk

goos: linux
goarch: amd64
pkg: github.com/appleboy/com/array
cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
BenchmarkArrayInMap
BenchmarkArrayInMap-2           411962          8343 ns/op        5224 B/op           8 allocs/op
BenchmarkArrayInSlice
BenchmarkArrayInSlice-2        4165724           863.8 ns/op           0 B/op           0 allocs/op
BenchmarkIn
BenchmarkIn-2                  4610620           776.3 ns/op        1792 B/op           1 allocs/op
BenchmarkInArray
BenchmarkInArray-2              388922          9177 ns/op        1624 B/op         101 allocs/op
PASS
ok      github.com/appleboy/com/array    16.040s
goos: linux
goarch: amd64
pkg: github.com/appleboy/com/convert
cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
BenchmarkCountParamsOld
BenchmarkCountParamsOld-2             2575500          1400 ns/op           0 B/op           0 allocs/op
BenchmarkCountParamsNew
BenchmarkCountParamsNew-2            33431834           108.5 ns/op           0 B/op           0 allocs/op
BenchmarkBytesToStrOld01

About

This is an open source project for commonly used functions for the Go programming language.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published