mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-20 00:29:54 +00:00
710c8fb883
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
46 lines
947 B
C++
46 lines
947 B
C++
#pragma once
|
|
|
|
#include <cassert>
|
|
#include <cstdint>
|
|
#include <filesystem>
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <stdexcept>
|
|
#include <string>
|
|
#include <utility>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
//#define TEST_JSON_PERFORMANCE
|
|
|
|
#define USE_SIMDJSON_JSON // 13 seconds (24)
|
|
//#define USE_RAPIDJSON_JSON // 19 seconds (32)
|
|
//#define USE_BOOST_JSON // 26 seconds (32)
|
|
//#define USE_NLOHMANN_JSON // 56 seconds (79)
|
|
//#define USE_JSONCPP_JSON // 80 seconds (91)
|
|
|
|
#ifdef USE_SIMDJSON_JSON
|
|
# define JSON_PREFER_PASS_BY_VALUE
|
|
# define JSON_PREFER_REUSE_OF_PARSER
|
|
# include "simdjson/simdjson.h"
|
|
#endif
|
|
|
|
#ifdef USE_RAPIDJSON_JSON
|
|
# define RAPIDJSON_HAS_STDSTRING 1
|
|
# define RAPIDJSON_SSE42
|
|
# include "rapidjson/document.h"
|
|
#endif
|
|
|
|
#ifdef USE_BOOST_JSON
|
|
# include <boost/json.hpp>
|
|
#endif
|
|
|
|
#ifdef USE_NLOHMANN_JSON
|
|
# include "nlohmann/json.hpp"
|
|
#endif
|
|
|
|
#ifdef USE_JSONCPP_JSON
|
|
# define JSON_PREFER_REUSE_OF_PARSER
|
|
# include <json/json.h>
|
|
#endif
|