Skip to content

Latest commit

 

History

History
161 lines (148 loc) · 4.34 KB

README.md

File metadata and controls

161 lines (148 loc) · 4.34 KB

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