@n8n/n8n-benchmark
Version:
Cli for running benchmark tests for n8n
28 lines (25 loc) • 643 B
text/typescript
export type ScenarioData = {
/** Relative paths to the workflow files */
workflowFiles?: string[];
};
/**
* Configuration that defines the benchmark scenario
*/
export type ScenarioManifest = {
/** The name of the scenario */
name: string;
/** A longer description of the scenario */
description: string;
/** Relative path to the k6 script */
scriptPath: string;
/** Data to import before running the scenario */
scenarioData: ScenarioData;
};
/**
* Scenario with additional metadata
*/
export type Scenario = ScenarioManifest & {
id: string;
/** Path to the directory containing the scenario */
scenarioDirPath: string;
};