From e8d229113387b922e54d0e2103ee7d2284d5b1e8 Mon Sep 17 00:00:00 2001 From: Smoren Date: Tue, 14 May 2024 00:18:46 +0300 Subject: [PATCH] Sim parallel task upd. --- src/scripts/actions/test-simulation-parallel.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/scripts/actions/test-simulation-parallel.ts b/src/scripts/actions/test-simulation-parallel.ts index 11419b5..cc29a23 100644 --- a/src/scripts/actions/test-simulation-parallel.ts +++ b/src/scripts/actions/test-simulation-parallel.ts @@ -65,16 +65,10 @@ export const actionTestSimulationParallel = async (...args: string[]) => { MAX_POSITION: maxPosition, }; - const inputs = [ - [1, worldConfig, typesConfig, stepsCount], - [2, worldConfig, typesConfig, stepsCount], - [3, worldConfig, typesConfig, stepsCount], - [4, worldConfig, typesConfig, stepsCount], - [5, worldConfig, typesConfig, stepsCount], - [6, worldConfig, typesConfig, stepsCount], - [7, worldConfig, typesConfig, stepsCount], - [8, worldConfig, typesConfig, stepsCount], - ]; + const inputs = []; + for (let i = 0; i < 100; i++) { + inputs.push([i+1, worldConfig, typesConfig, stepsCount]); + } const cpuCount = os.cpus().length; console.log('CPUs:', cpuCount);