|
| 1 | +[comment]: <> (data comes from here: https://www.notion.so/polygontechnology/CDK-Validium-TPS-Analysis-8aafda0d6b824c3781270cca30a8f70d#c6725ef8b93748ea8879d7e49e67c2fc and results are marked as OLD.. SME > @ruchawalawalkar) |
| 2 | + |
| 3 | +## Strategy |
| 4 | + |
| 5 | +The team calculated transactions-per-second, `tps`, for three transaction types: |
| 6 | + |
| 7 | +- **EOA to EOA**: Simple value transfers between user accounts. |
| 8 | +- **ERC20**: Token transfers, simulating the exchange of tokens on the network. |
| 9 | +- **ERC721**: Non-fungible token (NFT) transfers representing the exchange of unique digital assets. |
| 10 | + |
| 11 | +## Environment |
| 12 | + |
| 13 | +The tests ran on the following configurations: |
| 14 | + |
| 15 | +### CDK validium test |
| 16 | + |
| 17 | +| Component (Service) | Instance Type | Instance Count | vCPUs | RAM (GB) | Disk Size (GB) | Disk Type | |
| 18 | +| --- | --- | --- | --- | --- | --- | --- | |
| 19 | +| Sequencer | n2d-custom-8-16384 | 1 | 8 | 16 | 30 | Balanced persistent disk | |
| 20 | +| RPC Node | n2d-custom-8-16384 | 1 | 8 | 16 | 30 | Balanced persistent disk | |
| 21 | +| Executor | c2-standard-16 | 1 | 16 | 64 | 100 | SSD persistent disk | |
| 22 | +| Aggregator | n2d-custom-8-16384 | 1 | 8 | 16 | 30 | Balanced persistent disk | |
| 23 | +| Prover | n2-highmem-128 | 1 | 128 | 864 | 500 | SSD persistent disk | |
| 24 | +| Synchronizer | n2d-custom-8-16384 | 1 | 8 | 16 | 30 | Balanced persistent disk | |
| 25 | +| SequenceSender | n2d-custom-8-16384 | 1 | 8 | 16 | 30 | Balanced persistent disk | |
| 26 | +| ETH TX Manager | n2d-custom-8-16384 | 1 | 8 | 16 | 30 | Balanced persistent disk | |
| 27 | +| L2 Gas Pricer | n2d-custom-8-16384 | 1 | 8 | 16 | 30 | Balanced persistent disk | |
| 28 | +| HashDB Node | c2-standard-16 | 1 | 16 | 64 | 100 | SSD persistent disk | |
| 29 | +| Data Availability | n2d-custom-8-16384 | 4 | 8 | 16 | 30 | Balanced persistent disk | |
| 30 | + |
| 31 | +### Cloud SQL DB |
| 32 | + |
| 33 | +| DB Instance | vCPUs | RAM (GB) | Size (GB) | Count | |
| 34 | +| --- | --- | --- | --- | --- | |
| 35 | +| zkEVM DB | 16 | 60 | 100 | 1 | |
| 36 | +| contains: | State DB | 100 (Shared) | | | |
| 37 | +| | Pool DB | 100 (Shared) | | | |
| 38 | +| | Prover DB | 100 (Shared) | | | |
| 39 | + |
| 40 | +## Results |
| 41 | + |
| 42 | +### Key |
| 43 | + |
| 44 | +- `mode`: Type of transaction. |
| 45 | +- `concurrency`: Number of concurrent requests. |
| 46 | +- `requests`: Number of requests over the benchmarking session. |
| 47 | +- `rate-limit`: Overall limit to the number of requests per second. |
| 48 | + |
| 49 | +### Results (OLD?) |
| 50 | + |
| 51 | +| `tps` | `mode` | `concurrency` | `requests` | `rate-limit` | `total requests` | `notes` | |
| 52 | +| --- | --- | --- | --- | --- | --- | --- | |
| 53 | +| 6.269592476 | t (EOA Transactions) | 20 | 100 | 0 (disabled) | 2000 | | |
| 54 | +| 12.6984127 | t (EOA Transactions) | 20 | 200 | 0 (disabled) | 4000 | | |
| 55 | +| 0 | t (EOA Transactions) | 50 | 500 | 0 (disabled) | 25000 | ERRORED (see note) | |
| 56 | +| 17.27115717 | t (EOA Transactions) | 20 | 500 | 0 (disabled) | 10000 | | |
| 57 | +| 20.13422819 | t (EOA Transactions) | 30 | 500 | 0 (disabled) | 15000 | | |
| 58 | +| 24.8447205 | t (EOA Transactions) | 40 | 500 | 0 (disabled) | 20000 | | |
| 59 | +| 20.51983584 | t (EOA Transactions) | 30 | 1000 | 0 (disabled) | 30000 | | |
| 60 | +| 18.71804452 | t (EOA Transactions) | 30 | 100000 | 0 (disabled) | 3000000 | | |
| 61 | +| 14.82799526 | t (EOA Transactions) | 50 | 1000 | 0 (disabled) | 50000 | | |
| 62 | +| 8.650519031 | t (EOA Transactions) | 50 | 100 | 100 | 5000 | | |
| 63 | +| 16.20745543 | t (EOA Transactions) | 40 | 500 | 0 (disabled) | 20000 | DUPLICATE OF TEST10 | |
| 64 | +| 8.896797153 | t (EOA Transactions) | 20 | 2000 | 0 (disabled) | 40000 | | |
| 65 | +| 27.02702703 | t (EOA Transactions) | 10 | 100 | 50 | 1000 | Test ran on n2-standard-8 | |
| 66 | +| 29.19708029 | t (EOA Transactions) | 20 | 200 | 50 | 4000 | Test ran on n2-standard-8, with increase AccountQueue and GlobalQueue | |
| 67 | +| 36.86635945 | t (EOA Transactions) | 20 | 400 | 50 | 8000 | | |
| 68 | +| 29.19708029 | t (EOA Transactions) | 20 | 200 | 0 (disabled) | 4000 | | |
| 69 | +| 32.78688525 | t (EOA Transactions) | 50 | 200 | 0 (disabled) | 10000 | | |
| 70 | +| 29.19708029 | t (EOA Transactions) | 20 | 200 | 0 (disabled) | 4000 | | |
| 71 | +| 17.13062099 | t (EOA Transactions) | 20 | 400 | 50 | 8000 | | |
| 72 | +| 14.28571429 | 2 (ERC20 Transactions) | 10 | 100 | 0 (disabled) | 1000 | | |
| 73 | +| 18.01801802 | 2 (ERC20 Transactions) | 20 | 200 | 0 (disabled) | 4000 | | |
| 74 | +| 13.98601399 | 2 (ERC20 Transactions) | 30 | 200 | 40 | 6000 | | |
| 75 | +| 17.66004415 | 2 (ERC20 Transactions) | 20 | 400 | 30 | 8000 | | |
| 76 | +| 17.54385965 | 2 (ERC20 Transactions) | 20 | 500 | 30 | 10000 | | |
| 77 | +| 17.76198934 | 2 (ERC20 Transactions) | 20 | 500 | 40 | 10000 | | |
| 78 | +| 17.51313485 | 2 (ERC20 Transactions) | 20 | 500 | 50 | 10000 | | |
| 79 | +| 17.76198934 | 2 (ERC20 Transactions) | 20 | 500 | 100 | 10000 | | |
| 80 | +| 0 | 2 (ERC20 Transactions) | 30 | 500 | 100 | 15000 | ERRORED (resource exhausted) | |
| 81 | +| 17.36111111 | 2 (ERC20 Transactions) | 20 | 1000 | 0 (disabled) | 20000 | | |
| 82 | +| 17.33102253 | 2 (ERC20 Transactions) | 20 | 1500 | 0 (disabled) | 30000 | | |
| 83 | +| 18.61330852 | 2 (ERC20 Transactions) | 20 | 2000 | 0 (disabled) | 40000 | | |
| 84 | +| 17.24732666 | 2 (ERC20 Transactions) | 20 | 2500 | 0 (disabled) | 50000 | | |
| 85 | +| 4.545454545 | 7 (ERC721 Transactions) | 10 | 100 | 0 (disabled) | 1000 | | |
| 86 | +| 6.097560976 | 7 (ERC721 Transactions) | 10 | 200 | 0 (disabled) | 2000 | | |
| 87 | +| 12.86173633 | 7 (ERC721 Transactions) | 20 | 200 | 0 (disabled) | 4000 | | |
| 88 | +| 13.14060447 | 7 (ERC721 Transactions) | 20 | 500 | 0 (disabled) | 10000 | | |
| 89 | +| 0 | 7 (ERC721 Transactions) | 30 | 200 | 0 (disabled) | 6000 | ERRORED (resource exhausted) | |
| 90 | +| 14.18439716 | 7 (ERC721 Transactions) | 20 | 1000 | 0 (disabled) | 20000 | | |
| 91 | +| 12.39669421 | 7 (ERC721 Transactions) | 20 | 1500 | 0 (disabled) | 30000 | | |
| 92 | +| 13.81692573 | 7 (ERC721 Transactions) | 20 | 2000 | 0 (disabled) | 40000 | | |
| 93 | +| 13.49892009 | 7 (ERC721 Transactions) | 20 | 2500 | 0 (disabled) | 50000 | | |
| 94 | + |
| 95 | +## Conclusions |
| 96 | + |
| 97 | +TODO: summary of data results |
| 98 | + |
| 99 | +## Comparison with competitors |
| 100 | + |
| 101 | +TODO: in progress |
| 102 | + |
| 103 | + |
0 commit comments