Skip to main content

2018 | OriginalPaper | Buchkapitel

Perfomance Evaluation of Java, JavaScript and PHP Serialization Libraries for XML, JSON and Binary Formats

verfasst von : Jan Vanura, Pavel Kriz

Erschienen in: Services Computing – SCC 2018

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

The aim of this paper is to compare the formats and libraries used for serialization and deserialization of data, typically with RESTful web services, in terms of the processing time and size of the output data. The formats tested include XML, JSON, MessagePack, Avro, Protocol Buffers, and native serialization of each of the tested programming languages. Serialization and deserialization is tested in PHP, Java and JavaScript using 49 different official and third party libraries. The benchmark is fully open-sourced and automated, thus easily repeatable and extensible. The testing environment is designed to be isolated from the rest of the operating system using Docker containers having zero performance penalty in contrast to virtualization. The results show huge differences in processing time among libraries. Considering the output data size, binary formats with predefined schema, such as Avro and Protocol Buffers, provide the best efficiency.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Nurseitov, N., Paulson, M., Reynolds, R., Izurieta, C.: Comparison of JSON and XML data interchange formats: a case study. CAINE 9, 157–162 (2009) Nurseitov, N., Paulson, M., Reynolds, R., Izurieta, C.: Comparison of JSON and XML data interchange formats: a case study. CAINE 9, 157–162 (2009)
3.
Zurück zum Zitat Wang, G.: Improving data transmission in web applications via the translation between XML and JSON. In: 2011 Third International Conference on Communications and Mobile Computing, pp. 182–185, April 2011 Wang, G.: Improving data transmission in web applications via the translation between XML and JSON. In: 2011 Third International Conference on Communications and Mobile Computing, pp. 182–185, April 2011
6.
Zurück zum Zitat Maeda, K.: Performance evaluation of object serialization libraries in XML, JSON and binary formats. In: 2012 Second International Conference on Digital Information and Communication Technology and it’s Applications (DICTAP), pp. 177–182, May 2012 Maeda, K.: Performance evaluation of object serialization libraries in XML, JSON and binary formats. In: 2012 Second International Conference on Digital Information and Communication Technology and it’s Applications (DICTAP), pp. 177–182, May 2012
7.
Zurück zum Zitat Aihkisalo, T., Paaso, T.: A performance comparison of web service object marshalling and unmarshalling solutions. In: 2011 IEEE World Congress on Services, pp. 122–129, July 2011 Aihkisalo, T., Paaso, T.: A performance comparison of web service object marshalling and unmarshalling solutions. In: 2011 IEEE World Congress on Services, pp. 122–129, July 2011
8.
Zurück zum Zitat Sumaray, A., Makki, S.K.: A comparison of data serialization formats for optimal efficiency on a mobile platform. In: Proceedings of the 6th International Conference on Ubiquitous Information Management and Communication, ICUIMC 2012, pp. 48:1–48:6. ACM, New York (2012) Sumaray, A., Makki, S.K.: A comparison of data serialization formats for optimal efficiency on a mobile platform. In: Proceedings of the 6th International Conference on Ubiquitous Information Management and Communication, ICUIMC 2012, pp. 48:1–48:6. ACM, New York (2012)
12.
Zurück zum Zitat Popić, S., Pezer, D., Mrazovac, B., Teslić, N.: Performance evaluation of using protocol buffers in the Internet of Things communication. In: 2016 International Conference on Smart Systems and Technologies (SST), pp. 261–265, October 2016 Popić, S., Pezer, D., Mrazovac, B., Teslić, N.: Performance evaluation of using protocol buffers in the Internet of Things communication. In: 2016 International Conference on Smart Systems and Technologies (SST), pp. 261–265, October 2016
13.
Zurück zum Zitat Maeda, K.: Comparative survey of object serialization techniques and the programming supports. J. Commun. Comput. 9(8), 920–928 (2012) Maeda, K.: Comparative survey of object serialization techniques and the programming supports. J. Commun. Comput. 9(8), 920–928 (2012)
14.
Zurück zum Zitat Richardson, L., Ruby, S.: Restful Web Services, 1st edn. O’Reilly, Sebastopol (2007) Richardson, L., Ruby, S.: Restful Web Services, 1st edn. O’Reilly, Sebastopol (2007)
Metadaten
Titel
Perfomance Evaluation of Java, JavaScript and PHP Serialization Libraries for XML, JSON and Binary Formats
verfasst von
Jan Vanura
Pavel Kriz
Copyright-Jahr
2018
DOI
https://doi.org/10.1007/978-3-319-94376-3_11

Premium Partner