{"id":24107464,"url":"https://github.com/alessiosavi/gogputils","last_synced_at":"2025-06-13T10:33:38.108Z","repository":{"id":44763906,"uuid":"212786767","full_name":"alessiosavi/GoGPUtils","owner":"alessiosavi","description":"Enhance productivity and avoid to reinvent the wheel every time that you start a Go project","archived":false,"fork":false,"pushed_at":"2024-08-27T19:34:59.000Z","size":2047,"stargazers_count":35,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T00:42:36.464Z","etag":null,"topics":["aho-corasick","general-purpose","go","golang","gputils","helper","library","searching-algorithms","text-search","utils"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/alessiosavi/GoGPUtils?tab=overview","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alessiosavi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-04T10:09:20.000Z","updated_at":"2024-10-01T12:40:18.000Z","dependencies_parsed_at":"2024-03-22T02:25:27.491Z","dependency_job_id":"d871e978-7a56-4637-9c58-68a81def64b4","html_url":"https://github.com/alessiosavi/GoGPUtils","commit_stats":null,"previous_names":[],"tags_count":85,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessiosavi%2FGoGPUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessiosavi%2FGoGPUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessiosavi%2FGoGPUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alessiosavi%2FGoGPUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alessiosavi","download_url":"https://codeload.github.com/alessiosavi/GoGPUtils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253778745,"owners_count":21962918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aho-corasick","general-purpose","go","golang","gputils","helper","library","searching-algorithms","text-search","utils"],"created_at":"2025-01-10T22:30:24.828Z","updated_at":"2025-05-12T16:45:17.238Z","avatar_url":"https://github.com/alessiosavi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoGPUtils\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/86513a2282374f87a813110db86f018b)](https://www.codacy.com/manual/alessiosavi/GoGPUtils?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=alessiosavi/GoGPUtils\u0026amp;utm_campaign=Badge_Grade)\n[![Go Report Card](https://goreportcard.com/badge/github.com/alessiosavi/GoGPUtils)](https://goreportcard.com/report/github.com/alessiosavi/GoGPUtils) [![GoDoc](https://godoc.org/github.com/alessiosavi/GoGPUtils?status.svg)](https://godoc.org/github.com/alessiosavi/GoGPUtils) [![License](https://img.shields.io/github/license/alessiosavi/GoGPUtils)](https://img.shields.io/github/license/alessiosavi/GoGPUtils) [![Version](https://img.shields.io/github/v/tag/alessiosavi/GoGPUtils)](https://img.shields.io/github/v/tag/alessiosavi/GoGPUtils) [![Code size](https://img.shields.io/github/languages/code-size/alessiosavi/GoGPUtils)](https://img.shields.io/github/languages/code-size/alessiosavi/GoGPUtils) [![Repo size](https://img.shields.io/github/repo-size/alessiosavi/GoGPUtils)](https://img.shields.io/github/repo-size/alessiosavi/GoGPUtils) [![Issue open](https://img.shields.io/github/issues/alessiosavi/GoGPUtils)](https://img.shields.io/github/issues/alessiosavi/GoGPUtils)\n[![Issue closed](https://img.shields.io/github/issues-closed/alessiosavi/GoGPUtils)](https://img.shields.io/github/issues-closed/alessiosavi/GoGPUtils)\n\nA simple Go general-purpose utility repository for avoid reinventing the wheel every time that I need to start a new\nproject.\n\n## Benchmark\n\n```text\n$ go test -bench=. -benchmem -benchtime=5s `go list ./... | grep -v \"aws\\|sftp\\|http\"`\ngoos: linux\ngoarch: amd64\npkg: github.com/alessiosavi/GoGPUtils/byte\ncpu: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz\nBenchmarkTestIsUpperByteOK-8   \t1000000000\t         2.174 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTestIsLowerByteKO-8   \t1000000000\t         2.185 ns/op\t       0 B/op\t       0 allocs/op\n\ngoos: linux\ngoarch: amd64\npkg: github.com/alessiosavi/GoGPUtils/files\ncpu: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz\nBenchmarkCountLinesFile-8         \t  137064\t     48990 ns/op\t   37000 B/op\t       5 allocs/op\nBenchmarkListFile-8               \t    2167\t   2795762 ns/op\t  634139 B/op\t    7390 allocs/op\nBenchmarkFindFilesSensitive-8     \t    2142\t   2821969 ns/op\t  601264 B/op\t    7378 allocs/op\nBenchmarkFindFilesInsensitive-8   \t    2152\t   2789374 ns/op\t  601175 B/op\t    7378 allocs/op\n\ngoos: linux\ngoarch: amd64\npkg: github.com/alessiosavi/GoGPUtils/helper\ncpu: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz\nBenchmarkRandomIntn-8            \t406849989\t        14.48 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomInt32-8           \t417671403\t        14.45 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomInt64-8           \t317977765\t        18.92 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomFloat32-8         \t483547185\t        12.38 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomFloat64-8         \t450756500\t        13.33 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomIntnR-8           \t854001973\t         6.984 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomInt32R-8          \t1000000000\t         5.935 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomInt64R-8          \t382641378\t        15.59 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomFloat32R-8        \t1000000000\t         4.375 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomFloat64R-8        \t1000000000\t         4.039 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRandomIntnRArray-8      \t  706681\t     11181 ns/op\t    8192 B/op\t       1 allocs/op\nBenchmarkRandomInt32RArray-8     \t  720908\t      7630 ns/op\t    4096 B/op\t       1 allocs/op\nBenchmarkRandomInt64RArray-8     \t  282798\t     18387 ns/op\t    8192 B/op\t       1 allocs/op\nBenchmarkRandomFloat32Array-8    \t 1000000\t      6615 ns/op\t    4096 B/op\t       1 allocs/op\nBenchmarkRandomFloat64RArray-8   \t  973923\t     14226 ns/op\t    8192 B/op\t       1 allocs/op\nBenchmarkRandomString-8          \t  372956\t     16016 ns/op\t    5376 B/op\t       1 allocs/op\n\ngoos: linux\ngoarch: amd64\npkg: github.com/alessiosavi/GoGPUtils/math\ncpu: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz\nBenchmarkSumIntArray-8                   \t21259684\t       276.3 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkSumInt32Array-8                 \t21679155\t       276.6 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkSumInt64Array-8                 \t21689191\t       276.9 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkSumFloat32Array-8               \t 7149135\t       837.7 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkSumFloat64Array-8               \t 7130800\t       838.0 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMaxIntIndex-8                   \t 9218755\t       660.1 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMaxInt32Index-8                 \t 9081741\t       663.5 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMaxInt64Index-8                 \t 6498460\t       905.1 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMaxFloat32Index-8               \t 7288107\t       807.0 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkMaxFloat64Index-8               \t 6400204\t       919.1 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkAverageInt-8                    \t21770044\t       275.2 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkAverageInt32-8                  \t21702019\t       279.2 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkAverageInt64-8                  \t21416380\t       280.0 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkAverageFloat32-8                \t 7214160\t       832.5 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkAverageFloat64-8                \t 7128327\t       831.8 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkInitRandomMatrix-8              \t  752602\t     10999 ns/op\t    6352 B/op\t      13 allocs/op\nBenchmarkMultiplySumArray1000-8          \t 1000000\t      5371 ns/op\t    8192 B/op\t       1 allocs/op\nBenchmarkMultiplyMatrixLegacy100x100-8   \t     408\t  15497204 ns/op\t18012339 B/op\t   20101 allocs/op\nBenchmarkMultiplyMatrix100x100-8         \t    4159\t   1447695 ns/op\t   92288 B/op\t     101 allocs/op\nBenchmarkIsPrime-8                       \t 2652973\t      2249 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkCosineSimilarity-8              \t62873203\t        94.24 ns/op\t       0 B/op\t       0 allocs/op\n\ngoos: linux\ngoarch: amd64\npkg: github.com/alessiosavi/GoGPUtils/search\ncpu: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz\nBenchmarkLinearSearchInt-8           \t  761466\t      7683 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkLinearSearchParallelInt-8   \t212407228\t        30.05 ns/op\t      16 B/op\t       1 allocs/op\nBenchmarkContainsStringByte-8        \t  266810\t     31484 ns/op\t   22146 B/op\t      15 allocs/op\nBenchmarkContainsStringsByte-8       \t  118256\t     50534 ns/op\t   58196 B/op\t      33 allocs/op\nBenchmarkContainsWhichStrings-8      \t    7248\t    830028 ns/op\t   58332 B/op\t      36 allocs/op\n\ngoos: linux\ngoarch: amd64\npkg: github.com/alessiosavi/GoGPUtils/string\ncpu: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz\nBenchmarkLevenshteinDistanceLegacy-8   \t     100\t  52979171 ns/op\t51286027 B/op\t    2502 allocs/op\nBenchmarkLevenshteinDistance-8         \t     452\t  13153222 ns/op\t   40960 B/op\t       2 allocs/op\nBenchmarkDiceCoefficient-8             \t  137314\t     43159 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkJaroDistance-8                \t    5758\t   1032185 ns/op\t    5376 B/op\t       2 allocs/op\nBenchmarkContainsOnlyLetter-8          \t301701169\t        19.89 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRemoveFromString-8            \t   36577\t    193441 ns/op\t 1114117 B/op\t       2 allocs/op\nBenchmarkExtractTextFromQuery-8        \t     126\t  45763565 ns/op\t21765488 B/op\t  102064 allocs/op\nBenchmarkCheckPresence-8               \t1000000000\t         2.426 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkIsUpper-8                     \t1000000000\t         3.163 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkIsLower-8                     \t1000000000\t         3.486 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRemoveWhiteSpace-8            \t    2773\t   2275941 ns/op\t  557058 B/op\t       1 allocs/op\nBenchmarkIsASCII-8                     \t206237712\t        28.97 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkSplit-8                       \t    3511\t   3395051 ns/op\t 2446870 B/op\t   14363 allocs/op\nBenchmarkSplitBuiltin-8                \t    6294\t    896215 ns/op\t  319488 B/op\t       1 allocs/op\nBenchmarkExtractString-8               \t   15354\t    392595 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkRemoveNonASCII-8              \t    1456\t   4392784 ns/op\t 1589249 B/op\t       3 allocs/op\nBenchmarkTestIsUpperOK-8               \t1000000000\t         3.142 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkTestIsLowerOK-8               \t1000000000\t         3.492 ns/op\t       0 B/op\t       0 allocs/op\nBenchmarkCreateJSON-8                  \t      13\t 665361057 ns/op\t2998426824 B/op\t   10020 allocs/op\nBenchmarkJoin-8                        \t   10275\t    739491 ns/op\t 2931697 B/op\t      30 allocs/op\nBenchmarkTrim-8                        \t    1995\t   2988434 ns/op\t 1672093 B/op\t      13 allocs/op\nBenchmarkRemoveDoubleWhiteSpace-8      \t    2520\t   2329044 ns/op\t  557056 B/op\t       1 allocs/op\nBenchmarkCountLines-8                  \t   28654\t    209826 ns/op\t    4128 B/op\t       2 allocs/op\nBenchmarkReverseString-8               \t    6412\t   3824754 ns/op\t 2914315 B/op\t      32 allocs/op\n\ngoos: linux\ngoarch: amd64\npkg: github.com/alessiosavi/GoGPUtils/zip\ncpu: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz\nBenchmarkReadZipFile-8   \t  499692\t     10876 ns/op\t    6320 B/op\t      27 allocs/op\nBenchmarkReadZip01-8     \t  880110\t     12334 ns/op\t    6656 B/op\t      29 allocs/op\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessiosavi%2Fgogputils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falessiosavi%2Fgogputils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falessiosavi%2Fgogputils/lists"}