MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / benchmarkArgent

Function benchmarkArgent

scripts/bench/agent-control-benchmark.mjs:501–730  ·  view source on GitHub ↗
(udid)

Source from the content-addressed store, hash-verified

499}
500
501async function benchmarkArgent(udid) {
502 section("argent");
503
504 await sample("argent", "tool-start", "cold", 1, async () => {
505 const started = await startArgentToolServer();
506 argentEnv = started.env;
507 cleanupTasks.push(started.stop);
508 return started.result;
509 });
510
511 await sample("argent", "tool-start", "hot", 1, async () =>
512 run("argent", ["tools", "--json"], { env: argentEnv, timeoutMs: 15000 }),
513 );
514
515 await sample("argent", "list-devices", "hot", options.reps, async () =>
516 run("argent", ["run", "list-devices", "--json"], {
517 env: argentEnv,
518 timeoutMs: 20000,
519 }),
520 );
521
522 await sample("argent", "launch-settings", "hot", options.reps, async () =>
523 run(
524 "argent",
525 [
526 "run",
527 "launch-app",
528 "--udid",
529 udid,
530 "--bundleId",
531 settingsBundleId,
532 "--json",
533 ],
534 { env: argentEnv, timeoutMs: 30000 },
535 ),
536 );
537
538 await sample("argent", "open-url", "hot", options.reps, async () =>
539 run(
540 "argent",
541 ["run", "open-url", "--udid", udid, "--url", benchmarkUrl, "--json"],
542 { env: argentEnv, timeoutMs: 30000 },
543 ),
544 );
545
546 await withSettingsRoot(udid);
547 await sample("argent", "describe-full", "hot", options.reps, async () =>
548 run("argent", ["run", "describe", "--udid", udid, "--json"], {
549 env: argentEnv,
550 timeoutMs: 30000,
551 }),
552 );
553
554 recordUnsupported(
555 "argent",
556 "describe-interactive",
557 "hot",
558 "No interactive-only describe/snapshot flag in v0.8.0.",

Callers 1

mainFunction · 0.85

Calls 9

sectionFunction · 0.85
sampleFunction · 0.85
startArgentToolServerFunction · 0.85
withSettingsRootFunction · 0.85
recordUnsupportedFunction · 0.85
argentElementCenterFunction · 0.85
withNoteFunction · 0.85
withSettingsPaneFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected