From 2148284a31e959bcfdbfd1b3b6f9aa03689cc783 Mon Sep 17 00:00:00 2001 From: sf-v Date: Tue, 3 Dec 2024 11:08:30 -0800 Subject: [PATCH] chore: xxx --- package.json | 3 +++ packages/best-benchmarks/best.config.js | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index cc543739..1cbd8c72 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,9 @@ "webpack": "^5.96.1" }, "scripts": { + "hub": "PORT=5001 yarn best-agent-hub", + "agent1": "PORT=5002 yarn best-agent --remoteHubUri http://localhost:5001 --runner @best/runner-headless --uri http://localhost:5002", + "agent2": "PORT=5003 yarn best-agent --remoteHubUri http://localhost:5001 --runner @best/runner-headless --uri http://localhost:5003", "build:docs": "yarn workspace @best/docs build", "build:frontends": "lerna exec --scope @best/agent-frontend --scope @best/frontend -- yarn build", "build": "tsc -b", diff --git a/packages/best-benchmarks/best.config.js b/packages/best-benchmarks/best.config.js index c1137f6f..186f5ca1 100644 --- a/packages/best-benchmarks/best.config.js +++ b/packages/best-benchmarks/best.config.js @@ -10,13 +10,9 @@ module.exports = { metrics: ['script', 'aggregate', 'paint', 'layout'], specs: { name: 'chrome.headless', version: 127 }, runners: [ - { - runner: '@best/runner-headless', - alias: 'default', - }, { runner: '@best/runner-remote', - alias: 'local-remote', + alias: 'default', config: { uri: 'http://localhost:5001', options: { authToken: 'agent' },