go-redis

A redis implementation written in Go.

  • 所有者: felixge/go-redis
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

go-redis

A redis implementation in Go.

Thanks to US Airways treating me to an unexpected 9 hour layover at PHL, I
found myself with a little extra time, so I hit the bar and decided to see if I
could implement a Go server implementing the redis
protocol
and GET/SET
commands.

I spend probably 2 - 3 hours on this, and the result is kind of neat, as it
seems to perform almost as well as redis itself without attempting any forms of
optimizations yet.

Given that I'm now stuck at BRU, I'll probably implement this in node.js as
well for comparison. To be continued ...

Running

go run main.go

Performance

The numbers below should give you a rough idea, but don't take the numbers too
seriously as I've not done any extensive analysis here.

go-redis:

$ redis-benchmark -t GET,SET -n 100000
====== SET ======
  100000 requests completed in 1.18 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1

98.25% <= 1 milliseconds
99.99% <= 2 milliseconds
100.00% <= 2 milliseconds
84459.46 requests per second

====== GET ======
  100000 requests completed in 1.17 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1

98.33% <= 1 milliseconds
100.00% <= 1 milliseconds
85616.44 requests per second

redis:

$ redis-benchmark -t GET,SET -n 100000
====== SET ======
  100000 requests completed in 1.11 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1

99.95% <= 1 milliseconds
99.97% <= 2 milliseconds
100.00% <= 2 milliseconds
89847.26 requests per second

====== GET ======
  100000 requests completed in 1.12 seconds
  50 parallel clients
  3 bytes payload
  keep alive: 1

99.95% <= 1 milliseconds
100.00% <= 1 milliseconds
89206.06 requests per second

主要指标

概览
名称与所有者felixge/go-redis
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证
所有者活动
创建于2013-06-16 11:45:53
推送于2013-06-16 12:06:17
最后一次提交2013-06-16 14:05:40
发布数0
用户参与
星数55
关注者数5
派生数5
提交数5
已启用问题?
问题数0
打开的问题数0
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?