| 30 | #endif |
| 31 | |
| 32 | char const * json() noexcept |
| 33 | { |
| 34 | return R"DELIM([ |
| 35 | {{#result}} { |
| 36 | "title": "{{context(benchmark_title)}}", |
| 37 | "name": "{{context(benchmark_name)}}", |
| 38 | "source" : "{{context(source)}}", |
| 39 | "median(elapsed)": {{median(elapsed)}}, |
| 40 | "medianAbsolutePercentError(elapsed)": {{medianAbsolutePercentError(elapsed)}} |
| 41 | }{{^-last}},{{/-last}} |
| 42 | {{/result}} |
| 43 | ])DELIM"; |
| 44 | } |
| 45 | |
| 46 | std::optional<std::string_view> find_argument(std::string_view target_argument, std::span<char*> args) |
| 47 | { |