GitHub - RealTimeChris/Json-Performance: A few C++ json-library benchmarks, of the fastest few libraries. (original) (raw)

Skip to content

View all features

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Json-Performance

Here's a few benchmarks on a few common operating system/compiler platforms. Although feel free to try it out on more and let me know if you do/what scores you get! Cheers! (Click each of the badges below to be taken to the respective benchmarks). Also I will add some instructions for building below.

The Libraries

By OS/Compiler:


Ubuntu Linux/CLANG:


CLANG/Linux

Microsoft Windows/MSVC:


MSVC/Windows

Ubuntu Linux/GCC:


GCC/Linux

MacOS/CLANG:


CLANG/MacOS

MacOS/GCC:


GCC/MacOS

Pre-requisites:


  1. CMake 3.28 or later.
  2. A C++20 compliant compiler.
  3. Python3 and Seaborn for generating the graphs.

Build Instructions:


  1. Clone the repo.
  2. Cd into the repo's folder and enter cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=RELEASE_OR_DEBUG -DCMAKE_CXX_COMPILER=PATH_TO_COMPILER_EXECUTABLE (NOTE: Optionally set a manual installation path by setting -DCMAKE_INSTALL_PREFIX=CUSTOM_INSTALLATION_PATH)
  3. Then enter cmake --build ./Build --config=RELEASE_OR_DEBUG
  4. Then enter cmake --install ./Build
  5. Run the executable from wherever it was installed to!

Note:

These benchmarks were executed using the CPU benchmark library benchmarksuite