https://github.com/danil/rocacheexample
https://github.com/danil/rocacheexample
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/danil/rocacheexample
- Owner: danil
- License: bsd-3-clause
- Created: 2022-07-17T16:50:43.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-08T04:56:42.000Z (over 3 years ago)
- Last Synced: 2025-02-13T22:37:09.458Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Struct cache example for Go
[](https://cloud.drone.io/danil/rocacheexample)
[](https://pkg.go.dev/github.com/danil/rocacheexample)
Source files are distributed under the BSD-style license.
## About
The software is considered to be at an alpha level of readiness,
its extremely slow and allocates a lots of memory.
## Benchmark
```sh
$ go test -count=1 -race -bench ./...
goos: linux
goarch: amd64
pkg: github.com/danil/rocacheexample
cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
BenchmarkCache/cache-8 13396 89845 ns/op
PASS
ok github.com/danil/rocacheexample 2.143s
```