Make ondemand build without #include "simdjson.cpp"
This commit is contained in:
parent
a700848bae
commit
baf6607e74
|
@ -44,6 +44,7 @@ if (TARGET benchmark::benchmark)
|
|||
link_libraries(benchmark::benchmark)
|
||||
add_executable(bench_parse_call bench_parse_call.cpp)
|
||||
add_executable(bench_dom_api bench_dom_api.cpp)
|
||||
add_executable(bench_ondemand bench_ondemand.cpp)
|
||||
endif()
|
||||
|
||||
include(checkperf.cmake)
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
#include "simdjson.h"
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <random>
|
||||
#include <vector>
|
||||
SIMDJSON_PUSH_DISABLE_ALL_WARNINGS
|
||||
#include <benchmark/benchmark.h>
|
||||
SIMDJSON_POP_DISABLE_WARNINGS
|
||||
|
||||
#if SIMDJSON_IMPLEMENTATION_HASWELL
|
||||
#include "simdjson/haswell/begin.h"
|
||||
#endif // SIMDJSON_IMPLEMENTATION_HASWELL
|
||||
|
||||
#include "partial_tweets/ondemand.h"
|
||||
#include "partial_tweets/iter.h"
|
||||
#include "partial_tweets/dom.h"
|
||||
|
||||
#include "largerandom/ondemand.h"
|
||||
#include "largerandom/iter.h"
|
||||
#include "largerandom/dom.h"
|
||||
|
||||
#include "kostya/ondemand.h"
|
||||
#include "kostya/iter.h"
|
||||
#include "kostya/dom.h"
|
||||
|
||||
BENCHMARK_MAIN();
|
||||
|
||||
#if SIMDJSON_IMPLEMENTATION_HASWELL
|
||||
#include "simdjson/haswell/end.h"
|
||||
#endif // SIMDJSON_IMPLEMENTATION_HASWELL
|
|
@ -1,32 +1,20 @@
|
|||
#include "simdjson.h"
|
||||
#include "simdjson.cpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <random>
|
||||
#include <vector>
|
||||
SIMDJSON_PUSH_DISABLE_ALL_WARNINGS
|
||||
#include <benchmark/benchmark.h>
|
||||
SIMDJSON_POP_DISABLE_WARNINGS
|
||||
|
||||
|
||||
#if SIMDJSON_IMPLEMENTATION_HASWELL
|
||||
#include "simdjson/haswell/begin.h"
|
||||
#endif // SIMDJSON_IMPLEMENTATION_HASWELL
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <random>
|
||||
#include <vector>
|
||||
|
||||
#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"
|
||||
|
||||
#include "kostya/ondemand.h"
|
||||
#include "kostya/iter.h"
|
||||
#include "kostya/dom.h"
|
||||
|
||||
BENCHMARK_MAIN();
|
||||
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
namespace kostya {
|
||||
|
||||
using namespace simdjson;
|
||||
using namespace SIMDJSON_IMPLEMENTATION;
|
||||
using namespace SIMDJSON_IMPLEMENTATION::stage2;
|
||||
using namespace simdjson::SIMDJSON_IMPLEMENTATION;
|
||||
|
||||
class Iter {
|
||||
public:
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
namespace kostya {
|
||||
|
||||
using namespace simdjson;
|
||||
using namespace SIMDJSON_IMPLEMENTATION;
|
||||
using namespace SIMDJSON_IMPLEMENTATION::stage2;
|
||||
using namespace simdjson::SIMDJSON_IMPLEMENTATION;
|
||||
|
||||
class OnDemand {
|
||||
public:
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
namespace largerandom {
|
||||
|
||||
using namespace simdjson;
|
||||
using namespace SIMDJSON_IMPLEMENTATION;
|
||||
using namespace SIMDJSON_IMPLEMENTATION::stage2;
|
||||
using namespace simdjson::SIMDJSON_IMPLEMENTATION;
|
||||
|
||||
class Iter {
|
||||
public:
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
namespace largerandom {
|
||||
|
||||
using namespace simdjson;
|
||||
using namespace SIMDJSON_IMPLEMENTATION;
|
||||
using namespace SIMDJSON_IMPLEMENTATION::stage2;
|
||||
using namespace simdjson::SIMDJSON_IMPLEMENTATION;
|
||||
|
||||
class OnDemand {
|
||||
public:
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
namespace partial_tweets {
|
||||
|
||||
using namespace simdjson;
|
||||
#ifdef SIMDJSON_IMPLEMENTATION
|
||||
using namespace SIMDJSON_IMPLEMENTATION;
|
||||
using namespace SIMDJSON_IMPLEMENTATION::stage2;
|
||||
#endif
|
||||
|
||||
class DomNoExcept {
|
||||
public:
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
namespace partial_tweets {
|
||||
|
||||
using namespace simdjson;
|
||||
using namespace SIMDJSON_IMPLEMENTATION;
|
||||
using namespace SIMDJSON_IMPLEMENTATION::stage2;
|
||||
using namespace simdjson::SIMDJSON_IMPLEMENTATION;
|
||||
|
||||
class Iter {
|
||||
public:
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
namespace partial_tweets {
|
||||
|
||||
using namespace simdjson;
|
||||
using namespace SIMDJSON_IMPLEMENTATION;
|
||||
using namespace SIMDJSON_IMPLEMENTATION::stage2;
|
||||
using namespace simdjson::SIMDJSON_IMPLEMENTATION;
|
||||
|
||||
class OnDemand {
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue