mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
c1dffac28c
* This moves all DOM (benchmark + test) files to a subdir * Missing file. * CMake + DLL is not pretty. * Capitalizing AND * Fixing mismatch endif * Flipping the order. * onedemand => ondemand
19 lines
450 B
C++
19 lines
450 B
C++
// This file is not part of our main, regular tests.
|
|
#include "../singleheader/simdjson.h"
|
|
#include <iostream>
|
|
|
|
using namespace simdjson;
|
|
|
|
int main() {
|
|
const char *filename = SIMDJSON_BENCHMARK_DATA_DIR "/twitter.json";
|
|
dom::parser parser;
|
|
dom::element doc;
|
|
auto error = parser.load(filename).get(doc);
|
|
if (error) {
|
|
std::cerr << error << std::endl;
|
|
return EXIT_FAILURE;
|
|
}
|
|
std::cout << doc << std::endl;
|
|
return EXIT_SUCCESS;
|
|
}
|