#pragma once #include "json_benchmark/file_runner.h" namespace find_tweet { using namespace json_benchmark; template struct runner : public file_runner { typename I::StringType result; bool setup(benchmark::State &state) { return this->load_json(state, TWITTER_JSON); } bool before_run(benchmark::State &state) { if (!file_runner::before_run(state)) { return false; } result = ""; return true; } bool run(benchmark::State &) { return this->implementation.run(this->json, 505874901689851904ULL, result); } template bool diff(benchmark::State &state, runner &reference) { return diff_results(state, result, reference.result, diff_flags::NONE); } }; struct simdjson_dom; template simdjson_really_inline static void find_tweet(benchmark::State &state) { run_json_benchmark, runner>(state); } } // namespace find_tweet