Skip to content

Commit

Permalink
docs: upload aeloop pic
Browse files Browse the repository at this point in the history
  • Loading branch information
xgzlucario committed Dec 1, 2024
1 parent 3c97560 commit 9e5a664
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 38 deletions.
30 changes: 9 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ This is rotom, a high performance, low latency tiny Redis Server written in Go.

## Features

1. Implements the AeLoop single-threaded event loop from Redis using the epoll network model.
2. Compatible with the Redis RESP protocol, allowing any Redis client to connect to rotom.
3. Implements data structures such as dict, list, map, zipmap, set, zipset, and zset.
4. Supports RDB & AOF.
5. Supports 20+ commonly used commands.
- Implements the AeLoop single-threaded event loop from Redis using the epoll network model.
- Excellent optimization, achieving native Redis performance.
- Compatible with the Redis RESP protocol, allowing any Redis client to connected.
- Implements data structures String, Hash, Set, List, ZSet.
- Supports RDB & AOF.
- Supports 20+ commonly used commands.

## AELoop

Expand Down Expand Up @@ -60,24 +61,11 @@ pkg: github.com/xgzlucario/rotom
cpu: 13th Gen Intel(R) Core(TM) i5-13600KF
```

```
redis rotom redis_P10 rotom_P10 redis_P50 rotom_P50
SET 268817 268817 2222222 2173913 3448276 5263158
GET 265957 259740 2702702 1818181 4347826 4545454
INCR 271739 261780 2500000 2439024 4347826 7692307
LPUSH 289017 282485 2083333 2272727 2941176 4347826
RPUSH 283286 271739 2272727 2439024 3333333 7692307
SADD 273972 269541 2439024 2631579 4000000 7142857
HSET 282485 277777 2000000 2127659 3030303 3703703
ZADD 273224 272479 1960784 2702702 2941176 6249999
```

## Roadmap

- Support for LRU cache and memory eviction.
- Support for gradual rehashing in dict.
- Support for RDB and AOF Rewrite.
- Compatibility with more commonly used commands.
- [ ] Support for LRU cache and memory eviction.
- [ ] Gradually rehashing in dict.
- [ ] RDB and AOF Rewrite.

## Usage

Expand Down
23 changes: 6 additions & 17 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

## 特性

1. 基于 epoll 网络模型,还原了 Redis 中的 AeLoop 单线程事件循环
2. 兼容 Redis RESP 协议,你可以使用任何 redis 客户端连接 rotom
3. 实现了 dict, list, map, zipmap, set, zipset, zset 数据结构
4. RDB 和 AOF 持久化支持
5. 支持 20 多种常用命令
- 基于 epoll 网络模型,还原了 Redis 中的 AeLoop 单线程事件循环
- 非常好的优化,达到原生 Redis 的性能
- 兼容 Redis RESP 协议,可以使用任何 redis 客户端连接
- 实现了 String, Hash, Set, List, ZSet 数据结构
- RDB 和 AOF 持久化支持
- 支持 20 多种常用命令

## AELoop 事件循环

Expand Down Expand Up @@ -60,18 +61,6 @@ pkg: github.com/xgzlucario/rotom
cpu: 13th Gen Intel(R) Core(TM) i5-13600KF
```

```
redis rotom redis_P10 rotom_P10 redis_P50 rotom_P50
SET 268817 268817 2222222 2173913 3448276 5263158
GET 265957 259740 2702702 1818181 4347826 4545454
INCR 271739 261780 2500000 2439024 4347826 7692307
LPUSH 289017 282485 2083333 2272727 2941176 4347826
RPUSH 283286 271739 2272727 2439024 3333333 7692307
SADD 273972 269541 2439024 2631579 4000000 7142857
HSET 282485 277777 2000000 2127659 3030303 3703703
ZADD 273224 272479 1960784 2702702 2941176 6249999
```

## 计划

- LRU 缓存及内存淘汰支持
Expand Down

0 comments on commit 9e5a664

Please sign in to comment.