https://github.com/choewy/compare-redis-client-with-luascript
Compare Redis Client with Luascript
https://github.com/choewy/compare-redis-client-with-luascript
ioredis luascript nestjs redis
Last synced: 29 days ago
JSON representation
Compare Redis Client with Luascript
- Host: GitHub
- URL: https://github.com/choewy/compare-redis-client-with-luascript
- Owner: choewy
- Created: 2023-12-03T05:58:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-03T06:39:57.000Z (over 2 years ago)
- Last Synced: 2025-01-05T05:31:04.585Z (over 1 year ago)
- Topics: ioredis, luascript, nestjs, redis
- Language: TypeScript
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compare Redis Client With Redis Luascript
## Libs
- NestJS
- IoRedis
## APIs
### Redis Client Module
- GET /redis-client : test all
- GET /redis-client/:key : test by key
### Redis Luascript Module
- GET /redis-luascript : test all
- GET /redis-luascript/:key : test by key
```ts
export enum TestKey {
Coord = 'coord',
Weather = 'weather',
Stations = 'stations',
Sys = 'sys',
Main = 'main',
}
```
## Analysis
- Redis : v7.2(Docker)
- MacOS : CPU(M2), RAM(16GB)
### Redis Client
| loop | min | max | total | avg |
| ---: | ----: | ----: | ------: | -------: |
| 1 | 10 ms | 10 ms | 10 ms | 10 ms |
| 10 | 3 ms | 11 ms | 59 ms | 5.9 ms |
| 100 | 2 ms | 7 ms | 271 ms | 2.71 ms |
| 1000 | 2 ms | 38 ms | 2741 ms | 2.741 ms |
### Redis Luascript
| loop | min | max | total | avg |
| ---: | ---: | ---: | ------: | -------: |
| 1 | 5 ms | 5 ms | 5 ms | 5 ms |
| 10 | 1 ms | 4 ms | 23 ms | 2.3 ms |
| 100 | 1 ms | 7 ms | 173 ms | 1.73 ms |
| 1000 | 1 ms | 9 ms | 2127 ms | 2.127 ms |