#pragma once #if SIMDJSON_EXCEPTIONS #include "large_random.h" namespace large_random { using namespace simdjson; struct simdjson_dom { dom::parser parser{}; bool run(const simdjson::padded_string &json, std::vector &points) { for (auto point : parser.parse(json)) { points.emplace_back(large_random::point{point["x"], point["y"], point["z"]}); } return true; } }; BENCHMARK_TEMPLATE(large_random, simdjson_dom); } // namespace large_random #endif // SIMDJSON_EXCEPTIONS