From 1b44e9c6dd647dbf88663a18898f0dfa5b6933b6 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 3 Sep 2025 06:16:56 +0300 Subject: [PATCH] Use the number of CPU cores as the default for --parallel --- scripts/commands/playlist/test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/commands/playlist/test.ts b/scripts/commands/playlist/test.ts index 5fae0920ac..590c2e7111 100644 --- a/scripts/commands/playlist/test.ts +++ b/scripts/commands/playlist/test.ts @@ -5,6 +5,7 @@ import { Stream } from '../../models' import { program } from 'commander' import { eachLimit } from 'async-es' import chalk from 'chalk' +import os from 'node:os' import type { DataLoaderData } from '../../types/dataLoader' import type { DataProcessorData } from '../../types/dataProcessor' @@ -24,7 +25,7 @@ program '-p, --parallel ', 'Batch size of streams to test concurrently', (value: string) => parseInt(value), - 10 + os.cpus().length ) .option('-x, --proxy ', 'Use the specified proxy') .parse(process.argv)