tests/performance/run.js
/**
 * Initialize all servers used for the performance tests.
 * @returns {Promise} - Resolves when all servers are listening.
 */
Initialize all servers used for the performance tests.
@returns {Promise} - Resolves when all servers are listening.
Initialize all servers used for the performance tests . @returns { Promise } - Resolves when all servers are listening .
async function initServers() {
  const contentServer = TestContentServer(CONTENT_SERVER_PORT);
  const staticServer = launchStaticServer(__dirname, {
    httpPort: PERF_TESTS_PORT,
  });
  const resultServer = createResultServer();
  servers.push(contentServer, staticServer, resultServer);
  await Promise.all([
    contentServer.listeningPromise,
    staticServer.listeningPromise,
    resultServer.listeningPromise,
  ]);
}
async function initServers ( ) { const contentServer = TestContentServer ( CONTENT_SERVER_PORT ) ; const staticServer = launchStaticServer ( __dirname , { httpPort : PERF_TESTS_PORT , } ) ; const resultServer = createResultServer ( ) ; servers . push ( contentServer , staticServer , resultServer ) ; await Promise . all ( [ contentServer . listeningPromise , staticServer . listeningPromise , resultServer . listeningPromise , ] ) ; }
Initialize all servers used for the performance tests.
Initialize all servers used for the performance tests .