-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,45 @@ | ||
# RaftKeeper Benchmarks | ||
|
||
You can use the Benchmark tool that comes with RaftKeeper to benchmark RaftKeeper performance. Below we compare the performance of ZooKeeper and RaftKeeper. | ||
|
||
You can use [raftkeeper-bench](https://github.com/JDRaftKeeper/raftkeeper-bench) to do benchmarking. Below we compare the performance of ZooKeeper and RaftKeeper. | ||
|
||
|
||
## Environment | ||
|
||
``` | ||
Server: Docker - 16 cores, 32GB memory, 50GB NVMe disk | ||
Server: Docker - 16 cores, 32GB memory, 100GB NVMe disk | ||
System: CentOS 7.9 | ||
Version: RaftKeeper 2.0.0, ZooKeeper 3.7.1 | ||
Version: RaftKeeper 2.1.0, ZooKeeper 3.7.1 | ||
Cluster: RaftKeeper 3 nodes, ZooKeeper 3 nodes | ||
Config: RaftKeeper log level warning, ZooKeeper log level warn, others is default | ||
Test Data: every item is 100 bytes | ||
Config: default | ||
``` | ||
|
||
## 1. Write request benchmark (Create-100%) | ||
|
||
## 1. Write request benchmark (create-100%) | ||
|
||
- Create: every node value is 100 bytes | ||
|
||
 | ||
|
||
 | ||
|
||
 | ||
|
||
## 2. Mixed request benchmark (create-10% set-40% get-40% delete-10%) | ||
## 2. Mixed request benchmark (create-1% set-8% get-45% list-45% delete-1%) | ||
|
||
- Create: every node value is 100 bytes | ||
- Set: every node value is 100 bytes | ||
- Get: node value is 100 bytes | ||
- List: 100 children, every child 50 bytes | ||
- Delete: delete the created nodes | ||
|
||
 | ||
|
||
 | ||
|
||
 | ||
 | ||
|
||
|
||
## Summary | ||
|
||
The TPS of RaftKeeper for create requests is 2.4 times that of ZooKeeper, | ||
and for mixed requests, it is 3 times that of ZooKeeper. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.