Categorygithub.com/benchplus/gocache
repositorypackage
0.0.0-20220303084804-56d5996c6777
Repository: https://github.com/benchplus/gocache.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Simple performance comparison of cache libraries written in golang.

Reports

bigcachecachegoecachefreecachegcachegocache
PutInt:airplane::rocket::rocket::airplane::airplane:
GetInt:airplane::airplane::rocket::airplane::airplane:
Put1K:airplane::airplane::rocket::rocket::rocket::airplane:
Put1M:snail::rocket::snail::airplane::airplane:
PutTinyObject:airplane::rocket::rocket::airplane:
ChangeOutAllInt:airplane::rocket::rocket::airplane::airplane:
HeavyReadInt:rocket::rocket::rocket::rocket:
HeavyReadIntGC:airplane::rocket::rocket::airplane::airplane:
HeavyWriteInt:rocket::airplane::rocket::rocket::airplane:
HeavyWriteIntGC:rocket::airplane::airplane:
HeavyWrite1K:snail::airplane::rocket::rocket::airplane:
HeavyWrite1KGC:snail::airplane::rocket::rocket::airplane:
HeavyMixedInt:rocket::airplane::rocket::airplane::rocket:

:snail: for very-slow, :airplane: for fast, :rocket: 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