Skip to main content
QUICK REVIEW

[Paper Review] A Benchmark of JSON-compatible Binary Serialization Specifications

Juan Cruz Viotti, Mital Kinderkhedia|arXiv (Cornell University)|Jan 9, 2022
Software Engineering ResearchComputer Science9 citations
TL;DR

This paper presents a reproducible, open-source benchmark of 13 JSON-compatible binary serialization formats using 27 real-world JSON documents across industries. It introduces a novel tiered taxonomy (Tier 1–3) based on document size, structure, and redundancy, and finds that sequential, schema-driven formats like ASN.1 PER and Apache Avro outperform both schema-less formats and compressed JSON in space efficiency.

ABSTRACT

We present a comprehensive benchmark of JSON-compatible binary serialization specifications using the SchemaStore open-source test suite collection of over 400 JSON documents matching their respective schemas and representative of their use across industries. We benchmark a set of schema-driven (ASN.1, Apache Avro, Microsoft Bond, Cap'n Proto, FlatBuffers, Protocol Buffers, and Apache Thrift) and schema-less (BSON, CBOR, FlexBuffers, MessagePack, Smile, and UBJSON) JSON-compatible binary serialization specifications. Existing literature on benchmarking JSON-compatible binary serialization specifications demonstrates extensive gaps when it comes to binary serialization specifications coverage, reproducibility and representativity, the role of data compression in binary serialization and the choice and use of obsolete versions of binary serialization specifications. We introduce a tiered taxonomy for JSON documents consisting of 36 categories classified as Tier 1, Tier 2 and Tier 3 as a common basis to class JSON documents based on their size, type of content, characteristics of their structure and redundancy criteria. We built and published a free-to-use online tool to automatically categorize JSON documents according to our taxonomy that generates related summary statistics. In the interest of fairness and transparency, we adhere to reproducible software development standards and publicly host the benchmark software and results on GitHub.

Motivation & Objective

  • Address critical gaps in existing benchmarking of JSON-compatible binary serialization formats, including coverage, reproducibility, and representativeness.
  • Develop a standardized, automated, and extensible benchmark platform for evaluating space-efficiency across diverse real-world JSON data.
  • Investigate the impact of data compression on space efficiency across both schema-driven and schema-less binary serialization formats.
  • Establish a new taxonomy of JSON documents (Tier 1–3) based on size, structure, content type, and redundancy to improve benchmark representativeness.
  • Provide a transparent, open-source framework with publicly hosted results and code to enable reproducible research and future extension.

Proposed method

  • Built a tiered taxonomy of 36 JSON document categories (Tier 1: <100 bytes, Tier 2: 100–1000 bytes, Tier 3: ≥1000 bytes), classified by size, content type, structure, and redundancy.
  • Collected and curated 27 representative JSON documents from real-world industrial use cases, aligned with SchemaStore’s test suite.
  • Implemented an automated, deterministic benchmark platform using GitHub Actions to execute serialization across 13 binary formats and compression levels.
  • Measured raw and aggregate size metrics (median, average, reduction) across all combinations of format, compression, and document category.
  • Generated visualizations (bar and box plots) and published results and source code publicly on GitHub under Apache-2.0 license.
  • Used a consistent, reproducible pipeline to ensure fairness and transparency, with support for future extension to new formats and datasets.

Experimental results

Research questions

  • RQ1How do JSON-compatible schema-less binary serialization specifications compare to JSON in terms of space-efficiency?
  • RQ2How do JSON-compatible schema-driven binary serialization specifications compare to JSON and schema-less formats in terms of space-efficiency?
  • RQ3How do sequential binary serialization specifications compare to pointer-based binary serialization specifications in terms of space-efficiency?
  • RQ4How does compressed JSON compare to uncompressed and compressed binary serialization specifications in terms of space-efficiency?

Key findings

  • Sequential binary serialization formats are consistently more space-efficient than pointer-based formats, regardless of schema-driven or schema-less nature.
  • Schema-less binary formats like MessagePack, Smile, and FlexBuffers improve space efficiency only on specific document types: MessagePack on Tier 1 (<100 bytes), Smile on Tier 3 (≥1000 bytes), and FlexBuffers on high-redundancy textual data.
  • Both uncompressed and compressed schema-less binary formats result in negative median and average size reductions compared to compressed JSON, indicating they are less space-efficient.
  • Schema-driven formats (e.g., ASN.1 PER Unaligned, Apache Avro unpacked) yield positive median and average size reductions across all document tiers, outperforming both JSON and schema-less formats.
  • Compressed sequential schema-driven binary formats are strictly superior to compressed JSON in all 27 test cases, demonstrating consistent and significant space efficiency gains.
  • The benchmark reveals that data compression amplifies the advantages of schema-driven formats, making them optimal for bandwidth-constrained environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.