MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / parse_perf_case

Function parse_perf_case

tests/perf/model_perf.cpp:275–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275PerfCaseSpec parse_perf_case(const JsonValue & value) {
276 PerfCaseSpec out;
277 out.id = engine::io::json::require_string(value, "id");
278 out.family = engine::io::json::require_string(value, "family");
279 out.case_id = engine::io::json::require_string(value, "case_id");
280 out.request_id = engine::io::json::require_string(value, "request_id");
281 if (const auto * warmup_request_id = value.find("warmup_request_id"); warmup_request_id != nullptr && warmup_request_id->is_string()) {
282 out.warmup_request_id = warmup_request_id->as_string();
283 }
284 return out;
285}
286
287engine::runtime::ModelLoadRequest build_load_request(
288 const JsonValue & case_value,

Callers 1

mainFunction · 0.85

Calls 3

require_stringFunction · 0.85
is_stringMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected