#include #include "mstch/mstch.hpp" static void basic_usage(benchmark::State& state) { std::string comment_tmp{ "

{{header}}

"}; auto comment_view = mstch::map{ {"header", std::string{"My Post Comments"}}, {"comments", mstch::array{ mstch::map{{"name", std::string{"Joe"}}, {"body", std::string{"Thanks for this post!"}}}, mstch::map{{"name", std::string{"Sam"}}, {"body", std::string{"Thanks for this post!"}}}, mstch::map{{"name", std::string{"Heather"}}, {"body", std::string{"Thanks for this post!"}}}, mstch::map{{"name", std::string{"Kathy"}}, {"body", std::string{"Thanks for this post!"}}}, mstch::map{{"name", std::string{"George"}}, {"body", std::string{"Thanks for this post!"}}}}}}; while (state.KeepRunning()) mstch::render(comment_tmp, comment_view); } BENCHMARK(basic_usage); BENCHMARK_MAIN();