eslint-rule-benchmark
Version:
Benchmark ESLint rules with detailed performance metrics for CI and plugin development
30 lines (29 loc) • 1.02 kB
TypeScript
/** System information collected during benchmark execution. */
export interface SystemInfo {
/** Total system memory in gigabytes. */
totalMemoryGb: number
/** ESLint version used during benchmarking. */
eslintVersion: string
/** Node.js version (e.g., "v20.11.0"). */
nodeVersion: string
/** CPU base frequency in MHz. */
cpuSpeedMHz: number
/** Operating system release version (e.g., "22.6.0", "10.0.22621"). */
osRelease: string
/** V8 JavaScript engine version. */
v8Version: string
/** Operating system platform (e.g., "darwin", "linux", "win32"). */
platform: string
/** Number of CPU cores. */
cpuCount: number
/** CPU model (e.g., "Intel(R) Core(TM) i7-12700K CPU @ 3.60GHz"). */
cpuModel: string
/** CPU architecture (e.g., "x64", "arm64"). */
arch: string
}
/**
* Collects system information that may affect benchmark results.
*
* @returns Object containing system specifications and versions.
*/
export declare function collectSystemInfo(): Promise<SystemInfo>