GoGPUtils

command module
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 1 Imported by: 0

README

GoGPUtils

Codacy Badge Go Report Card GoDoc License Version Code size Repo size Issue open Issue closed

A simple Go general purpouse utility repository for avoid to reinvent the wheel every time that i need to start a new project.

Benchmark

$ go test -bench=. -benchmem -benchtime=3s ./...
?       github.com/alessiosavi/GoGPUtils        [no test files]
?       github.com/alessiosavi/GoGPUtils/array  [no test files]
goos: linux
goarch: amd64
pkg: github.com/alessiosavi/GoGPUtils/files
BenchmarkCountLinesFile-8                 339223             10205 ns/op           37008 B/op          6 allocs/op
BenchmarkListFile-8                         2773           1250014 ns/op          776674 B/op       1658 allocs/op
BenchmarkFindFilesSensitive-8               2760           1254085 ns/op          772610 B/op       1651 allocs/op
BenchmarkFindFilesInsensitive-8             2761           1255753 ns/op          772609 B/op       1651 allocs/op
BenchmarkGetFileSize-8                   2662074              1351 ns/op             240 B/op          2 allocs/op
BenchmarkGetFileSize2-8                   631066              5298 ns/op             352 B/op          5 allocs/op
PASS
ok      github.com/alessiosavi/GoGPUtils/files  22.747s
goos: linux
goarch: amd64
pkg: github.com/alessiosavi/GoGPUtils/helper
BenchmarkRandomIntn-8                     391386              8512 ns/op               0 B/op          0 allocs/op
BenchmarkRandomInt32-8                    398005              8544 ns/op               0 B/op          0 allocs/op
BenchmarkRandomInt64-8                    398162              8477 ns/op               0 B/op          0 allocs/op
BenchmarkRandomFloat32-8                  395895              8658 ns/op               0 B/op          0 allocs/op
BenchmarkRandomFloat64-8                  396686              8446 ns/op               0 B/op          0 allocs/op
BenchmarkRandomIntnR-8                  336818254               10.6 ns/op             0 B/op          0 allocs/op
BenchmarkRandomInt32R-8                 434283892                8.28 ns/op            0 B/op          0 allocs/op
BenchmarkRandomInt64R-8                 182885812               19.7 ns/op             0 B/op          0 allocs/op
BenchmarkRandomFloat32R-8               576148489                6.20 ns/op            0 B/op          0 allocs/op
BenchmarkRandomFloat64R-8               530354978                6.71 ns/op            0 B/op          0 allocs/op
BenchmarkRandomIntnRArray-8               228712             13251 ns/op            8192 B/op          1 allocs/op
BenchmarkRandomInt32RArray-8              296588             10312 ns/op            4096 B/op          1 allocs/op
BenchmarkRandomInt64RArray-8              159220             22409 ns/op            8192 B/op          1 allocs/op
BenchmarkRandomFloat32Array-8             418146              9088 ns/op            4096 B/op          1 allocs/op
BenchmarkRandomFloat64RArray-8            390234              9184 ns/op            8192 B/op          1 allocs/op
PASS
ok      github.com/alessiosavi/GoGPUtils/helper 58.265s
goos: linux
goarch: amd64
pkg: github.com/alessiosavi/GoGPUtils/math
BenchmarkSumIntArray-8           9276975               395 ns/op               0 B/op          0 allocs/op
BenchmarkSumInt32Array-8         9423216               357 ns/op               0 B/op          0 allocs/op
BenchmarkSumInt64Array-8         6312278               558 ns/op               0 B/op          0 allocs/op
BenchmarkSumFloat32Array-8       3388503              1054 ns/op               0 B/op          0 allocs/op
BenchmarkSumFloat64Array-8       3265048              1091 ns/op               0 B/op          0 allocs/op
BenchmarkMaxIntIndex-8           4166944               849 ns/op               0 B/op          0 allocs/op
BenchmarkMaxInt32Index-8         4221096               884 ns/op               0 B/op          0 allocs/op
BenchmarkMaxInt64Index-8         4009416               889 ns/op               0 B/op          0 allocs/op
BenchmarkMaxFloat32Index-8       3231303              1122 ns/op               0 B/op          0 allocs/op
BenchmarkMaxFloat64Index-8       3533840               993 ns/op               0 B/op          0 allocs/op
BenchmarkAverageInt-8            9468012               367 ns/op               0 B/op          0 allocs/op
BenchmarkAverageInt32-8          8188119               379 ns/op               0 B/op          0 allocs/op
BenchmarkAverageInt64-8          9241965               388 ns/op               0 B/op          0 allocs/op
BenchmarkAverageFloat32-8        3039806              1174 ns/op               0 B/op          0 allocs/op
BenchmarkAverageFloat64-8        3183806              1119 ns/op               0 B/op          0 allocs/op
PASS
ok      github.com/alessiosavi/GoGPUtils/math   64.910s
goos: linux
goarch: amd64
pkg: github.com/alessiosavi/GoGPUtils/search
BenchmarkLinearSearchInt-8                 10312            349655 ns/op               0 B/op          0 allocs/op
BenchmarkLinearSearchParallelInt-8         27259            150256 ns/op              96 B/op          2 allocs/op
BenchmarkContainsStringByte-8             111829              9653 ns/op           22157 B/op         15 allocs/op
BenchmarkContainsStringsByte-8             51841             22829 ns/op           58203 B/op         33 allocs/op
BenchmarkContainsWhichStrings-8             1048           1137795 ns/op           58795 B/op         36 allocs/op
PASS
ok      github.com/alessiosavi/GoGPUtils/search 11.485s
goos: linux
goarch: amd64
pkg: github.com/alessiosavi/GoGPUtils/string
BenchmarkTestIsUpperKO-8        18917581               181 ns/op               0 B/op          0 allocs/op
BenchmarkTestIsUpperOK-8        19360959               185 ns/op               0 B/op          0 allocs/op
BenchmarkTestIsLowerOK-8        18706875               182 ns/op               0 B/op          0 allocs/op
BenchmarkTestIsLowerKO-8        19025580               190 ns/op               0 B/op          0 allocs/op
BenchmarkRemoveFromString-8     311516538               11.9 ns/op             0 B/op          0 allocs/op
BenchmarkRandomString-8           160533             21311 ns/op            5376 B/op          1 allocs/op
PASS
ok      github.com/alessiosavi/GoGPUtils/string 23.358s
goos: linux
goarch: amd64
pkg: github.com/alessiosavi/GoGPUtils/zip
BenchmarkReadZipFile-8            252720             12148 ns/op            7808 B/op         29 allocs/op
BenchmarkReadZip01-8              271430             12680 ns/op            8144 B/op         31 allocs/op
PASS
ok      github.com/alessiosavi/GoGPUtils/zip    6.801s

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package fileutils provided a set of method for work with files
Package fileutils provided a set of method for work with files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL