Merged
Conversation
- Add CMake option BUILD_BENCHMARK (default OFF) to build benchmark - Implement ctrack_benchmark with four measurement categories: 1. Accuracy: Measures how accurately CTRACK records function timings 2. Overhead: Compares performance with/without CTRACK enabled 3. Memory: Tracks memory usage per recorded event 4. Calculation time: Measures time to process results - Support configurable event count (default 50M) and thread count - Add baseline recording (--record-baseline) and comparison (--compare-baseline) - Benchmark uses nested functions with predictable timing patterns - Includes multi-threaded stress testing capabilities Usage: ctrack_benchmark [--events N] [--threads N] [--record-baseline] [--compare-baseline] This benchmark will help track performance regressions and improvements across different platforms and CTRACK versions.
- Add comprehensive Developer Guide section to README.md - Document all benchmark features including baseline comparison - Provide best practices for running and interpreting benchmarks - Add CLAUDE.local.md to .gitignore for local documentation
…t_timestamp functions
… add accuracy error measurement and enhance baseline data structure
…actor event handling to use pointers
…oved performance and adjust event capacity reservation strategy to optimize memory usage.
…capacity reservation strategy
…sive time and percentage calculations
- Implemented tests for summary row validation, including basic and multiple function scenarios. - Added detailed statistics validation tests to ensure accurate tracking of function performance. - Created tests for result meta information and settings filtering to verify correct behavior under various configurations. - Included tests for statistical calculations, including variance, percentiles, and outlier handling. - Ensured consistency across multiple calls and edge cases, such as single executions and extreme values. - Validated statistical stability with large sample sizes and progressive variance analysis.
…t ranges for improved accuracy
…ements, and build system enhancements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.