mirror of
https://github.com/nalgeon/redka.git
synced 2025-12-24 12:38:00 +08:00
doc: readme - performance
This commit is contained in:
@@ -33,7 +33,7 @@ Redka comes in two flavors:
|
||||
|
||||
## Performance
|
||||
|
||||
According to the [benchmarks](docs/performance.md), Redka is several times slower than Redis. Still, it can do 26K writes/sec and 94K reads/sec on a Macbook Air, which is pretty good if you ask me (and probably 10x more than most applications will ever need).
|
||||
According to the [benchmarks](docs/performance.md), Redka is several times slower than Redis. Still, it can do up to 100K op/sec on a Macbook Air, which is pretty good if you ask me (and probably 10x more than most applications will ever need).
|
||||
|
||||
Redka stores data in a [SQLite database](docs/persistence.md) with a simple schema and provides views for better introspection.
|
||||
|
||||
|
||||
@@ -45,8 +45,8 @@ Redka (persisted to disk):
|
||||
./redka -p 6380 data.db
|
||||
redis-benchmark -p 6380 -q -c 10 -n 1000000 -r 10000 -t get,set
|
||||
|
||||
SET: 26028.11 requests per second, p50=0.215 msec
|
||||
GET: 93923.17 requests per second, p50=0.071 msec
|
||||
SET: 26773.76 requests per second, p50=0.215 msec
|
||||
GET: 103092.78 requests per second, p50=0.063 msec
|
||||
```
|
||||
|
||||
So while Redka is 2-5 times slower than Redis (not surprising, since we are comparing a relational database to a key-value data store), it can still do 26K writes/sec and 94K reads/sec, which is pretty good if you ask me.
|
||||
|
||||
Reference in New Issue
Block a user