28 C/C ++ open-source JSON library performance and standard compliance evaluation

Source: Internet
Author: User

28 C/C ++ open-source JSON library performance and standard compliance evaluation

There are a lot of C/C ++ JSON libraries in the workshop. It is a difficult choice.

[Nativejson-benchmark] (https://github.com/miloyip/nativejson-benchmark) should be the first open source project in history to evaluate 28 C/C ++ open source JSON libraries, it evaluated whether each library conforms to the JSON standard (RFC7159, ECMA-404), and tested the performance of each operation such as parsing, generating) time consumption, memory usage and other data, even the size of executable files is measured.

This project also hopes to improve the quality of the current or future JSON library by learning from each other.

Since each evaluation does not completely cover all data and software and hardware combinations, it is recommended that you perform tests on the required platform and data.

Here are some of the results for iMac (Corei5-3330S@2.70GHz) and clang 6.1 _ 1 64-bit. For more information, see here.

The higher the standard, the better ):

The lower the time for parsing to DOM, the better ):

The lower the memory, the better ):

The lower the time for DOM to generate JSON, the better ):

The lower the time for DOM to generate JSON with line breaks and indentation, the better ):

The smaller the size of the executable file, the better. parse JSON to DOM, and calculate the JSON type ):

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.