# Non-Face-to-Face P2P (Peer-to-Peer) Real-Time Token Payment Blockchain System
## 5 Experiment and Results
### Performance Testing
#### 5.2.2 Balance Inquiry Response Time  
Balance response is the process of querying SymID from the blockchain node and delivering the balance to the client in JSON format. To measure the balance response time, DDoS defense IP blocking was turned off and a scenario was assumed where user50 generates 50 threads with 100 loops of requests, setting the ramp-up to 0 so that only up to 50 requests can be made per second. User100 assumes a scenario where 100 threads with 100 loops of requests are generated, setting the ramp-up to 0 so that only up to 100 requests can be made per second. User200 assumes a scenario where 200 threads with 100 loops of requests are generated, setting the ramp-up to 0 so that only up to 200 requests can be made per second. User300 assumes a scenario where 300 threads with 100 loops of requests are generated, setting the ramp-up to 0 so that only up to 300 requests can be made per second. The summary report of the test is shown in Table 15. The transactions per second (TPS) were 560.73 without errors in 50 threads, 565.55 TPS with 0.01% errors in 100 threads, 482.35 TPS with 0.09% errors in 200 threads and 475.0 TPS with 0.7% errors in 300 threads, indicating an increase in errors as the number of threads increases.  
In Figure 18,b, the results are different when DDoS blocking is turned off and when DDoS blocking is not turned off, even though the conditions are the same. However, the difference between the two conditions is not significant, which shows that the performance of the proposed technique is excellent.  
\begin{table}
\begin{tabular}{l c c c c c c c c c c c c c} \hline \hline
**Requests** & \multicolumn{3}{c}{**Requests**} & \multicolumn{5}{c}{**Response Times (ms)**} & \multicolumn{5}{c}{**Throughput**} & \multicolumn{2}{c}{**Network (KB/sec)**} \\ \hline
**Label** & **\# of Samples** & **KO** & **Error\%** & **Average** & **Min** & **Max** & **Median** & **90 th** & **95 th** & **99 th** & **Transaction** & **Precise** & **Send** \\ \hline
**Total** & 65,000 & **210** & **0.32\%** & **830.81** & **0** & **3067** & **1131.00** & **1610.00** & **1764.00** & **2060.99** & **223.60** & **97.89** & **47.88** \\ User50 & 5000 & 0 & 0.00\% & 191.60 & 48 & 524 & 186.00 & 276.00 & 307.00 & 370.99 & 247.34 & 106.98 & 53.14 \\ User100 & 10,000 & 1 & 0.01\% & 372.60 & 8 & 1660 & 356.00 & 571.00 & 652.00 & 282.99 & 252.31 & 109.17 & 54.20 \\ User200 & 20,000 & 32 & 0.16\% & 752.27 & 3 & 2151 & 738.00 & 1112.90 & 1229.95 & 1468.00 & 250.26 & 108.91 & 53.68 \\ User300 & 30,000 & 177 & 0.59\% & 1142.44 & 0 & 3067 & 1131.00 & 1610.00 & 1764.00 & 2069.99 & 251.95 & 111.39 & 53.81 \\ \hline \hline \end{tabular}
\end{table}
Table 16: TC4 response time of balance inquiry (with DDoS protection).  
\begin{table}
\begin{tabular}{l c c c c c c c c c c c c} \hline \hline
**Requests** & \multicolumn{3}{c}{**Requests**} & \multicolumn{5}{c}{**Response Times (ms)**} & \multicolumn{5}{c}{**Throughput**} & \multicolumn{2}{c}{**Network (KB/sec)**} \\ \hline
**Label** & **\# of Samples** & **KO** & **Error\%** & **Average** & **Min** & **Max** & **Median** & **90 th** & **95 th** & **99 th** & **Transaction** & **Precise** & **Send** \\ \hline
**Total** & **65,000** & **230** & **0.35\%** & **425.91** & **0** & **1980** & **571.00** & **920.00** & **1022.00** & **1022.00** & **1229.00** & **383.81** & **168.20** & **82.17** \\ User50 & 5000 & 0 & 0.00\% & 83.01 & 31 & 307 & 78.00 & 121.00 & 140.00 & 185.00 & 560.73 & 242.54 & 120.47 \\ User100 & 10,000 & 1 & 0.01\% & 156.17 & 15 & 638 & 136.00 & 276.00 & 329.00 & 426.00 & 565.55 & 244.71 & 121.49 \\ User200 & 20,000 & 18 & 0.09\% & 387.40 & 4 & 1496 & 368.00 & 651.00 & 737.00 & 896.99 & 482.35 & 209.33 & 103.54 \\ User300 & 30,000 & 211 & 0.70\% & 598.63 & 0 & 1980 & 571.00 & 920.00 & 1022.00 & 1229.00 & 475.01 & 210.84 & 101.34 \\ \hline \hline \end{tabular}
\end{table}
Table 15: TC3 Response time of balance inquiry (without DDoS protection).