Added performance tests#39
Closed
davidirvine wants to merge 2 commits intodevelopfrom
Closed
Conversation
- Implement real-time processing validation * Single voice processing speed verification (sub-100ms for 1s audio) * Multiple voice scaling tests (1-16 voices with CPU usage monitoring) * Real-time constraint validation for different voice counts - Add memory allocation stability tests * Long-duration processing without dynamic allocation * Consistent memory usage across multiple transitions * Amplitude and frequency bounds verification during extended processing - Implement stress testing * Rapid parameter changes with fast animation speeds * Extreme oscillator count testing (up to 16 oscillators) * High-complexity scenarios with detuning and rapid transitions - Add performance regression detection * Baseline performance measurement with detailed timing statistics * Per-sample processing time analysis (average, median, 95th percentile, max) * Performance consistency across different voice states - Fix duplicate symbol issue with inline specifier for init_voice function - Update CMakeLists.txt to include performance_tests.cpp - All tests pass with 606,406 assertions validating performance characteristics - Tests maintain C++14 compatibility and realistic performance expectations
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive performance tests for the DeepNote voice system to validate real-time audio processing requirements. The tests verify that the voice implementation can process audio within tight timing constraints and maintain stable performance under various conditions.
- Adds performance validation tests covering real-time processing, memory stability, and stress testing
- Includes regression detection tests to establish baseline performance metrics
- Updates build configuration to include the new performance test file
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| test/performance_tests.cpp | New comprehensive performance test suite for voice processing |
| test/CMakeLists.txt | Adds performance_tests.cpp to the test build |
| src/voice/deepnotevoice.hpp | Makes init_voice function inline (likely for performance) |
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.