xsync
go-cache-benchmark
xsync | go-cache-benchmark | |
---|---|---|
7 | 2 | |
917 | 2 | |
- | - | |
5.5 | 7.0 | |
about 2 months ago | 2 months ago | |
Go | Go | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
xsync
-
Otter, Fastest Go in-memory cache based on S3-FIFO algorithm
The issue is Go stdlib does not have parallel hash map.
We have https://github.com/puzpuzpuz/xsync#map a different Cache line hashmap impl.
- Are there any actively maintained or official Golang libraries for managing work queues?
-
Thread-Local State in Go, Huh?
I've created a pull request to decrease the memory footprint and get rid of the unlucky distribution problem. Goroutines (think, threads) now self-organize: they detect contention via a failed CAS and change the stripe. Going to update the article accordingly to avoid confusion.
-
So long, sync.Map
Could you check the method godoc and the example in this draft PR? I'm going to finalize the PR this weekend and it would be great to hear your opinion.
- puzpuzpuz/xsync: Concurrent data structures for Go. An extension for the standard sync package.
go-cache-benchmark
-
Otter, Fastest Go in-memory cache based on S3-FIFO algorithm
- I added otter to my cache benchmark. It shows less efficiency than mine. I'm not sure why this happens.
See results here: https://github.com/scalalang2/go-cache-benchmark
[3]
-
golang-fifo | Modern cache eviction algorithm implementations.
I've conducted my own research to verify that its statements are really true. The S3-FIFO algorithm shows the best cache efficiency (= low miss ratio) relative to other LRU-based algorithm when cache size is quite smaller than total size of item set.
What are some alternatives?
taskq - Golang asynchronous task/job queue with Redis, SQS, IronMQ, and in-memory backends
maphash
Tasqueue - A simple, customisable distributed job/worker in Go
libCacheSim - a high performance library for building cache simulators
ristretto - A high performance memory-bound Go cache
Faktory - Language-agnostic persistent background job server
machinery - Machinery is an asynchronous task queue/job queue based on distributed message passing.
go - The Go programming language
NATS - High-Performance server for NATS.io, the cloud and edge native messaging system.
goque - Persistent stacks and queues for Go backed by LevelDB
theine-go - high performance in-memory cache