mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
32 lines
744 B
C++
32 lines
744 B
C++
#define SIMDJSON_IMPLEMENTATION_FALLBACK 0
|
|
#define SIMDJSON_IMPLEMENTATION_WESTMERE 0
|
|
#define SIMDJSON_IMPLEMENTATION_ARM64 0
|
|
|
|
#include <iostream>
|
|
#include <sstream>
|
|
#include <random>
|
|
#include <vector>
|
|
|
|
#include "simdjson.h"
|
|
#include "simdjson.cpp"
|
|
|
|
#if SIMDJSON_IMPLEMENTATION_HASWELL
|
|
#define SIMDJSON_IMPLEMENTATION haswell
|
|
#endif // SIMDJSON_IMPLEMENTATION_HASWELL
|
|
|
|
SIMDJSON_PUSH_DISABLE_ALL_WARNINGS
|
|
#include <benchmark/benchmark.h>
|
|
SIMDJSON_POP_DISABLE_WARNINGS
|
|
|
|
#include "partial_tweets/ondemand.h"
|
|
#include "partial_tweets/iter.h"
|
|
#include "partial_tweets/sax.h"
|
|
#include "partial_tweets/dom.h"
|
|
|
|
#include "largerandom/ondemand.h"
|
|
#include "largerandom/iter.h"
|
|
#include "largerandom/sax.h"
|
|
#include "largerandom/dom.h"
|
|
|
|
BENCHMARK_MAIN();
|