MCPcopy Create free account
hub / github.com/ElementsProject/elements / json

Function json

src/bench/nanobench.h:1382–1425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1380}
1381
1382char const* json() noexcept {
1383 return R"DELIM({
1384 "results": [
1385{{#result}} {
1386 "title": "{{title}}",
1387 "name": "{{name}}",
1388 "unit": "{{unit}}",
1389 "batch": {{batch}},
1390 "complexityN": {{complexityN}},
1391 "epochs": {{epochs}},
1392 "clockResolution": {{clockResolution}},
1393 "clockResolutionMultiple": {{clockResolutionMultiple}},
1394 "maxEpochTime": {{maxEpochTime}},
1395 "minEpochTime": {{minEpochTime}},
1396 "minEpochIterations": {{minEpochIterations}},
1397 "epochIterations": {{epochIterations}},
1398 "warmup": {{warmup}},
1399 "relative": {{relative}},
1400 "median(elapsed)": {{median(elapsed)}},
1401 "medianAbsolutePercentError(elapsed)": {{medianAbsolutePercentError(elapsed)}},
1402 "median(instructions)": {{median(instructions)}},
1403 "medianAbsolutePercentError(instructions)": {{medianAbsolutePercentError(instructions)}},
1404 "median(cpucycles)": {{median(cpucycles)}},
1405 "median(contextswitches)": {{median(contextswitches)}},
1406 "median(pagefaults)": {{median(pagefaults)}},
1407 "median(branchinstructions)": {{median(branchinstructions)}},
1408 "median(branchmisses)": {{median(branchmisses)}},
1409 "totalTime": {{sumProduct(iterations, elapsed)}},
1410 "measurements": [
1411{{#measurement}} {
1412 "iterations": {{iterations}},
1413 "elapsed": {{elapsed}},
1414 "pagefaults": {{pagefaults}},
1415 "cpucycles": {{cpucycles}},
1416 "contextswitches": {{contextswitches}},
1417 "instructions": {{instructions}},
1418 "branchinstructions": {{branchinstructions}},
1419 "branchmisses": {{branchmisses}}
1420 }{{^-last}},{{/-last}}
1421{{/measurement}} ]
1422 }{{^-last}},{{/-last}}
1423{{/result}} ]
1424})DELIM";
1425}
1426
1427ANKERL_NANOBENCH(IGNORE_PADDED_PUSH)
1428struct Node {

Callers 1

RunAllMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected