# VidBlock: A Web3.0-Enabled Decentralized Blockchain Architecture for Live Video Streaming
## 4 Experiment and Evaluation
### Performance Test
#### 4.2.1 Main Process Performance Evaluation
The IPFS download latency reflects the time needed for the consumer node to retrieve the metadata, which impacts how quickly the content appears in the streaming list for the viewer's selection. The experimental evaluation of the VidBlock system focused on measuring latency across key operational stages, assessing how efficiently the decentralized infrastructure supports live streaming in a global setting. The main factors analyzed include the latency involved in IPFS uploads, blockchain-based hash transfers, hash retrievals from the blockchain, and metadata downloads from the IPFS. The results provide insight into the impact of geographic location, network configurations, and decentralized components on the streaming experience. 1. IPFS upload: The IPFS upload step measures the latency incurred by the ViB creator node while uploading metadata to IPFS, which is essential for ensuring decentralized access to streaming content. * Upload latencies are relatively consistent across regions, with Seoul showing the lowest latency (1199.4 ms) and Frankfurt the highest (1284 ms). The consistency in upload times highlights IPFS's resilience as a decentralized storage network, as upload latency remains stable despite geographic differences. This demonstratesVidBlock's capacity to leverage IPFS for reliable content metadata distribution, allowing for scalable and location-independent storage of content information. 2. Blockchain hash transfer: The blockchain hash transfer latency measures the time taken to record the content hash on the blockchain, which is crucial for securely storing and verifying metadata access points. * The results indicate efficient hash transfer times in closer regions, with Seoul and Tokyo reporting latencies of 224.4 ms and 232.4 ms, respectively. Even in distant regions like California and Frankfurt, the latency remains within acceptable limits (288.6 ms and 335.8 ms). This stage demonstrates the blockchain's capability to maintain efficient data integrity across distributed regions, providing a secure and immutable reference for metadata. VidBlock's use of blockchain-based hash storage ensures that consumers in all regions can access verified metadata, contributing to the system's trustworthiness and decentralized design. 3. Blockchain hash call: The hash call step measures the time taken by the ViB consumer node to retrieve the content hash from the blockchain, which is essential for enabling content retrieval from IPFS. * Seoul (648.2 ms) and Tokyo (758.4 ms) exhibit lower latencies, allowing faster hash retrieval for users in these regions. California and Frankfurt demonstrate higher latencies, at 1502 ms and 1480.4 ms, respectively. These findings indicate that while hash retrieval is efficient in regions close to blockchain nodes, distant regions experience additional delay. However, the presence of the blockchain in the VidBlock system still provides an effective mechanism for ensuring that content metadata is reliably accessible. This decentralized approach to metadata retrieval supports VidBlock's goal of eliminating reliance on centralized servers while maintaining a globally accessible system. 4. IPFS download: The IPFS download latency reflects the time required for the ViB consumer node to retrieve and download metadata from the IPFS, a key step in populating the content list and enabling content selection. * Seoul and Tokyo show moderate download latencies (1256.2 ms and 1345.76 ms), while Tokyo and California exhibit slightly higher latencies at 1356.5 ms and 1499.7 ms. These values demonstrate that IPFS performs well across distributed regions, with acceptable variations in latency. The consistency of IPFS access times highlights VidBlock's potential to enable a decentralized and distributed content library that remains accessible across global regions. 5. P2P connection: The P2P connection latency measures the time required to establish a direct link between the ViB creator and consumer nodes through a relay node.