.rulesync/rules/benchmarks.md
This guide covers running and creating performance benchmarks for AG Grid.
Performance benchmarks help detect regressions and validate optimizations.
Two types of performance testing exist in AG Grid:
testing/behavioural/ - micro-benchmarks for specific operationstesting/performance/e2e/ - end-to-end performance scenarios# Run behavioural benchmarks
yarn nx benchmark ag-behavioural-testing
# Run specific benchmark file
yarn nx benchmark ag-behavioural-testing -- src/tree-data/datapath/benchmarks/tree-data-path.bench.ts
# Watch mode for development
yarn nx benchmark ag-behavioural-testing --configuration=watch
# Update benchmark baselines
yarn nx benchmark ag-behavioural-testing --configuration=update
When creating new benchmarks:
For watch mode during development:
yarn nx benchmark ag-behavioural-testing --configuration=watch