arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2201.03051cs.SE
收藏

JSON兼容的二进制序列化规范的基准测试

A Benchmark of JSON-compatible Binary Serialization Specifications

Juan Cruz Viotti, Mital Kinderkhedia

摘要:

我们使用SchemaStore开源测试套件集合提供了一个全面的JSON兼容二进制序列化规范基准,该集合包含400多个JSON文档,这些文档与各自的模式相匹配,并代表了它们在各个行业的使用。我们对一组模式驱动(ASN.1,Apache Avro,Microsoft Bond,Cap'n Proto,FlatBuffers,Protocol Buffers和Apache Thrift)和无模式(BSON,CBOR,FlexBuffers,MessagePack,Smile和UBJSON)JSON兼容的二进制序列化规范进行了基准测试。关于基准JSON兼容的二进制序列化规范的现有文献表明,在二进制序列化规范的覆盖范围、可重复性和代表性、数据压缩在二进制序列化中的作用以及二进制序列化规范的过时版本的选择和使用方面存在广泛的差距。我们为JSON文档引入了一个分层分类法,包括36个分类为第1层,第2层和第3层的类别,作为一个共同的基础,根据其大小,内容类型,结构特征和冗余标准对JSON文档进行分类。我们构建并发布了一个免费使用的在线工具,可以根据我们的分类法自动对JSON文档进行分类,并生成相关的汇总统计数据。为了公平和透明,我们坚持可复制的软件开发标准,并在GitHub上公开托管基准测试软件和结果。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑