| 1536 | } |
| 1537 | |
| 1538 | static bool generateConfigTag(Node const& n, Config const& config, std::ostream& out) { |
| 1539 | using detail::d; |
| 1540 | |
| 1541 | if (n == "title") { |
| 1542 | out << config.mBenchmarkTitle; |
| 1543 | return true; |
| 1544 | } else if (n == "name") { |
| 1545 | out << config.mBenchmarkName; |
| 1546 | return true; |
| 1547 | } else if (n == "unit") { |
| 1548 | out << config.mUnit; |
| 1549 | return true; |
| 1550 | } else if (n == "batch") { |
| 1551 | out << config.mBatch; |
| 1552 | return true; |
| 1553 | } else if (n == "complexityN") { |
| 1554 | out << config.mComplexityN; |
| 1555 | return true; |
| 1556 | } else if (n == "epochs") { |
| 1557 | out << config.mNumEpochs; |
| 1558 | return true; |
| 1559 | } else if (n == "clockResolution") { |
| 1560 | out << d(detail::clockResolution()); |
| 1561 | return true; |
| 1562 | } else if (n == "clockResolutionMultiple") { |
| 1563 | out << config.mClockResolutionMultiple; |
| 1564 | return true; |
| 1565 | } else if (n == "maxEpochTime") { |
| 1566 | out << d(config.mMaxEpochTime); |
| 1567 | return true; |
| 1568 | } else if (n == "minEpochTime") { |
| 1569 | out << d(config.mMinEpochTime); |
| 1570 | return true; |
| 1571 | } else if (n == "minEpochIterations") { |
| 1572 | out << config.mMinEpochIterations; |
| 1573 | return true; |
| 1574 | } else if (n == "epochIterations") { |
| 1575 | out << config.mEpochIterations; |
| 1576 | return true; |
| 1577 | } else if (n == "warmup") { |
| 1578 | out << config.mWarmup; |
| 1579 | return true; |
| 1580 | } else if (n == "relative") { |
| 1581 | out << config.mIsRelative; |
| 1582 | return true; |
| 1583 | } |
| 1584 | return false; |
| 1585 | } |
| 1586 | |
| 1587 | static std::ostream& generateResultTag(Node const& n, Result const& r, std::ostream& out) { |
| 1588 | if (generateConfigTag(n, r.config(), out)) { |
no test coverage detected