Skip to content

fossabot/redhub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REDHUB
GoDoc

RedHub

FOSSA Status

High-performance Redis-Server framework, based on rawepoll model.

  • high performance
  • Compatible with redis protocol
  • Create a Redis compatible server with RawEpoll model in Go

Installing

go get -u github.com/IceFireDB/redhub

Example

Here's a full example of a Redis clone that accepts:

  • SET key value
  • GET key
  • DEL key
  • PING
  • QUIT

You can run this example from a terminal:

go run example/server.go

Benchmarks

Machine information
        OS : CentOS Linux release 7.9.2009 (Core)
       CPU : 4 CPU cores
    Memory : 32.0 GiB

Go Version : go1.16.5 linux/amd64

Redis-server5.0.3: no disk persistence

$ ./redis-server --port 6379 --appendonly no
$ redis-benchmark -p 6379 -t set,get -n 10000000 -q -P 1024 -c 512
SET: 1864975.75 requests per second
GET: 2443792.75 requests per second

Redis-server6.2.5: no disk persistence

$ ./redis-server --port 6379 --appendonly no
$ redis-benchmark -p 6379 -t set,get -n 10000000 -q -P 1024 -c 512
SET: 1690617.12 requests per second
GET: 2201188.50 requests per second

Redhub: no disk persistence

$ go run example/server.go
$ redis-benchmark -p 6380 -t set,get -n 10000000 -q -P 1024 -c 512
SET: 3033060.50 requests per second
GET: 6169031.50 requests per second

REDHUB Benchmarks

License

Redhub source code is available under the Apache 2.0 License.

Disclaimers

When you use this software, you have agreed and stated that the author, maintainer and contributor of this software are not responsible for any risks, costs or problems you encounter. If you find a software defect or BUG, ​​please submit a patch to help improve it!

License

FOSSA Status

About

High-performance Redis-Server framework, based on rawepoll model.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%