INOVTEK Polbeng - Seri Informatika
Vol. 10 No. 3 (2025): November

A Comparative Study of Webrtc and Websocket Performance in Real-Time Voice Communication

Limaran, Alwin Hartono (Unknown)
Wicaksono, Agung (Unknown)
Herwanto , Patah (Unknown)



Article Info

Publish Date
15 Nov 2025

Abstract

This study compares the performance of Web Real-Time Communication (WebRTC) and WebSocket for bidirectional voice interaction with the ChatGPT API on an Orange Pi 3B edge device over a 50 Mbps Ethernet connection. The objective is to determine the most efficient and reliable protocol for real-time interaction on resource-constrained devices. The study evaluates latency, bandwidth, CPU utilization, and jitter metrics automatically collected to assess the efficiency and stability of both protocols. Results show that WebRTC achieves approximately 150 ms latency with lower network and CPU consumption and near-zero jitter, while WebSocket exhibits around 200 ms latency with higher bandwidth usage and CPU load. Practically, WebRTC is more efficient and stable for client-side production due to its resource-efficient and responsive characteristics, whereas WebSocket is better suited for custom data streaming or high-throughput server-to-server communication. These findings provide a quantitative foundation for developers in selecting the optimal protocol for real-time voice applications in edge environments.

Copyrights © 2025






Journal Info

Abbrev

ISI

Publisher

Subject

Computer Science & IT

Description

The Journal of Innovation and Technology (INOVTEK Polbeng—Seri Informatika) is a distinguished publication hosted by the State Polytechnic of Bengkalis. Dedicated to advancing the field of informatics, this scientific research journal serves as a vital platform for academics, researchers, and ...