fredrikwidlund / libclo_benchmark

Very simple JSON print benchmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libclo_benchmark

Very simple JSON print benchmark

Description

Measures and compares JSON print statements using three different implementations

Requirements

  • libclo
  • jansson
  • cJSON (included)

Build

git clone https://github.com/fredrikwidlund/libclo_benchmark.git
cd libclo_benchmark
./autogen.sh
./configure
make

Run

$ ./benchmark 10000000 > /dev/null
          libclo:          393.646 ns
         jansson:           2406.5 ns
           cJSON:          1524.68 ns

About

Very simple JSON print benchmark


Languages

Language:C 98.0%Language:Makefile 1.0%Language:M4 0.8%Language:Shell 0.2%