CodeChain-io / CodeChain-io/codechain
Current RPC throughput
- 主要言語
- Rust
- スター
- 256
- フォーク
- 50
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Considering a blockchain is a distributed ledger, each user will send RPC requests to its own distributed node. So the RPC throughput per node is not an important factor.
However, when measuring prevailing blockchain domain metrics like TPS it may affect performance.
I want to notify current RPC throughput to inform developers about the RPC layer limit.
CPU information: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
| RPC type | Throughput|
|---------------------------------|-----------|
| Ping | 2426 RPC/s |
| SendSignedtransaction with Pay | 1237 RPC/s |
If you are trying to build a high performance network for the sake of benchmark and send transactions to a single node, TPS value is not able to surpass the RPC throughput.
Current value seems to be low and be enhanced by modifying server implementation.
With RUST_LOG=error, the throughput can increase up to about
| RPC type | Throughput |
| --------------------------------------------|------------------|
| SendSignedtransaction with Pay | 1400 RPC/s |
コントリビューションガイド
調査の方向性
まず、指定された Intel i7-7700 のセットアップで、報告された Ping と SendSignedtransaction with Pay のベンチマークを、通常時と RUST_LOG=error を設定した場合の両方で再現します。ソースファイルやテストは特定されていません。完了の条件は、現在の RPC 制限を文書化し、サーバー実装によって報告されたスループットを改善できるかどうかを確認することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- blockchain
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100