Comparison of JSON and MessagePack Serialization Performance on End-to-end latency over HTTP Protocol
DOI:
https://doi.org/10.70609/g-tech.v10i3.10072Keywords:
Data Serialization, JSON, MessagePack, HTTP Communication, End-to-end latencyAbstract
The increasing use of HTTP-based communication in modern service-oriented systems requires efficient data serialization formats to reduce communication latency and transmission overhead. This study compares the performance of JSON and MessagePack serialization formats in HTTP communication using the Go programming language. Performance was evaluated using synthetic datasets containing 10, 100, 1000, and 5000 records. The measured parameters included payload size, encoding latency, decoding latency, and End-to-end latency. The results show that MessagePack consistently outperformed JSON across all evaluated metrics. For the largest dataset containing 5000 records, MessagePack reduced End-to-end latency from 13.269 ms to 3.894 ms and generated a smaller payload size (335.87 KB) than JSON (350.53 KB). The performance advantage became more pronounced as the dataset size increased, particularly in decoding and End-to-end latency processes. These findings indicate that MessagePack is an efficient alternative to JSON for HTTP-based communication systems requiring low latency, bandwidth efficiency, and high-performance data exchange.
References
Araque, S. M., Lozada-Martínez, I. D., Papadopoulos, G. Z., Montavont, N., & Toutain, L. (2023). Yet Another Compact Time Series Data Representation Using CBOR Templates (YACTS). In Sensors. https://doi.org/10.3390/s23115124
Araque, S. M., Martinez, I., Papadopoulos, G. Z., Montavont, N., & Toutain, L. (2022). Toward a Standard Time Series Representation for IoT based on CBOR Templates. 2022 Global Information Infrastructure and Networking Symposium (GIIS), 13–19. https://doi.org/10.1109/GIIS56506.2022.9936910
Ardiansyah, H., & Fatwanto, A. (2022). Comparison of Memory Usage Between REST API in Javascript and Golang. In Matrik Jurnal Manajemen Teknik Informatika Dan Rekayasa Komputer. https://doi.org/10.30812/matrik.v22i1.1325
Balalayeva, E., Marchenko, I., & Serhiienko, A. (2024). Investigation of the Performance Efficiency of C# Programming Language Data Serializers using the Developed Software Product for Testing. 2024 IEEE 19th International Conference on Computer Science and Information Technologies (CSIT), 1–4.
Bermbach, D., & Wittern, E. (2020). Benchmarking Web API Quality – Revisited. 19, 603–646. https://doi.org/10.13052/jwe1540-9589.19563
Cummings, N. (2024). Streaming Technologies and Serialization Protocols : Empirical Performance Analysis. IEEE Access, 12(October), 158025–158039. https://doi.org/10.1109/ACCESS.2024.3486054
Huseynov, K., Cakir, L. V., Al-Shareeda, S., Özdem, M., & Canberk, B. (2024). A data serialization-based framework for efficient IoT management. 2024 IEEE 10th World Forum on Internet of Things (WF-IoT), 707–712.
Kaler, T. (2017). Optimal Reissue Policies for Reducing Tail Latency. 195–206.
Keiser, J. (2024). On-demand JSON : A better way to parse documents ? November 2023, 1074–1086. https://doi.org/10.1002/spe.3313
Langdale, G., & Lemire, D. (2019). Parsing gigabytes of JSON per second. The VLDB Journal, 28(6), 941–960.
Lu, F., Wei, X., Huang, Z., Chen, R., Wu, M., & Chen, H. (2024). Serialization / Deserialization-free State Transfer in Serverless Workflows. 132–147. https://doi.org/10.1145/3627703.3629568
Maltsev, E., & Amin, R. U. (2024). Impact of Serialization Format on Inter-Service Latency. Advances in Cyber-Physical Systems, 9(2), 89–94. https://doi.org/10.23939/acps2024.02.089
Marcelino, C., Pusztai, T., & Nastic, S. (2025). Roadrunner: Accelerating Data Delivery to WebAssembly-Based Serverless Functions. Proceedings of the 26th International Middleware Conference, 354–368.
Myastovskiy, T. (2024). Evaluating the Performance of Serialization Protocols in Apache Kafka.
Olufemi, O. I., Ukommi, U., & Ubom, E. (2023). Comparative analysis of transceiver payload size impact on the performance of LoRa-based sensor node. Sleep, 31050, 45–500.
Pargaonkar, S. (2023). A Comprehensive Review of Performance Testing Methodologies and Best Practices : Software Quality Engineering. 12(8), 2008–2014. https://doi.org/10.21275/SR23822111402
Proos, D. P. (2020). Performance Comparison of Messaging Protocols and Serialization Formats for Digital Twins in IoV. June.
Sutisnawati, Y., Maryati, M., & Setiyadi, A. (2025). Pengembangan API Berbasis JSON pada Sistem Koperasi Berbasis Web. 5(2), 303–316.
Valiveti, S. S. (2025). Low Latency Web APIs in High Transaction Systems Design and Benchmarking. International Journal of Computational and Experimental Science and Engineering, 11(3).
Viotti, J. C., & Kinderkhedia, M. (2022). A Benchmark of JSON-compatible Binary Serialization Specifications. https://doi.org/10.48550/arxiv.2201.03051
Yuan, C., Du, J., Yue, M., & Ma, T. (2020). The Design of Large Scale IP Address and Port Scanning Tool. In Sensors. https://doi.org/10.3390/s20164423
Yudanto, B. A., Laudri, S. P., Felina, I., Rizqi, M., Abinovan, A., Fadhil, M., Fathir, R., Putra, R., Ulfa, D. F., Salzi, W. F., Nuzulah, R., Studi, P., Informatika, T., Gedong, K., Rebo, P., & Timur, J. (2025). IMPLEMENTASI REST API MENGGUNAKAN BAHASA GO. 06(02), 384–393.
Zahra, V. A., & Ardiansyah, R. (2026). HTTP/3 vs HTTP/2: A Comparative Analysis of Latency and Throughput in RESTful API Transactions Under Varying Concurrency, Payload, and Degraded Network Conditions. Journal of Applied Informatics and Computing, 10(2), 1291–1303.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Muhammad Ilham Dzurinadib, Muhamat Maariful Huda, Tito Prabowo

This work is licensed under a Creative Commons Attribution 4.0 International License.









