performance-results-parser is a Node.js utility designed for parsing and analyzing performance test results from various tools, primarily focusing on JMeter's CSV and JTL output formats. Currently at version 0.0.10, this library is in active development, with frequent releases addressing new features and minor refinements, as evidenced by recent updates in March 2026. Key differentiators include its ability to aggregate performance metrics (such as Samples, Duration, Errors, Data Sent, Data Received, and Latency) across multiple result files, and its robust support for defining customizable success and failure thresholds. These thresholds can be applied globally (OVERALL) or at a transactional level, allowing for granular validation of performance against predefined criteria. The library also emphasizes secure parsing by including internal protection against prototype pollution, a common vulnerability in parsing libraries. It provides a programmatic interface for integrating performance analysis into CI/CD pipelines and automated reporting.
npm install performance-results-parserVerified import paths — ran on the pinned version, not inferred.
Demonstrates parsing a JMeter CSV file, applying global and transactional performance thresholds, and checking the overall pass/fail status.
Always review the changelog for each new patch release. Consider pinning to exact versions (e.g., `0.0.10`) in production environments and thoroughly testing updates.
Always keep the library updated to the latest version to benefit from security patches. Be cautious when processing performance test results from untrusted sources, even with the internal protection, as no system is foolproof.
Thoroughly test threshold configurations against known good and bad performance data. Refer to the documentation for correct metric names, operators, and scope definitions. Use TypeScript for type-checking to catch common configuration errors.
Verify the file path is correct and accessible. Ensure the file permissions allow the Node.js process to read the file.
Use a named import for the `parse` function: `import { parse } from 'performance-results-parser';`Ensure the `type` property is set to a currently supported format, e.g., `{ type: 'jmeter', files: [...] }`. Check the documentation for available parser types.