/gocache

Continuous Benchmark for cache libraries written in golang.

Primary LanguageGoMIT LicenseMIT

Simple performance comparison of cache libraries written in golang.

Reports

bigcache cachego ecache freecache gcache gocache
PutInt ✈️ 🚀 🚀 ✈️ ✈️
GetInt ✈️ ✈️ 🚀 ✈️ ✈️
Put1K ✈️ ✈️ 🚀 🚀 🚀 ✈️
Put1M 🐌 🚀 🐌 ✈️ ✈️
PutTinyObject ✈️ 🚀 🚀 ✈️
ChangeOutAllInt ✈️ 🚀 🚀 ✈️ ✈️
HeavyReadInt 🚀 🚀 🚀 🚀
HeavyReadIntGC ✈️ 🚀 🚀 ✈️ ✈️
HeavyWriteInt 🚀 ✈️ 🚀 🚀 ✈️
HeavyWriteIntGC 🚀 ✈️ ✈️
HeavyWrite1K 🐌 ✈️ 🚀 🚀 ✈️
HeavyWrite1KGC 🐌 ✈️ 🚀 🚀 ✈️
HeavyMixedInt 🚀 ✈️ 🚀 ✈️ 🚀

🐌 for very-slow, ✈️ for fast, 🚀 for very-fast.

Default parameters

  • 256 shards * 32 items, 10s expiration

  • gcache is 256 shards as default

  • set value as key+1 when int cases

Misc

  • create a issue to add new libraries