skrytt / baselisk-rs

Learning Rust by writing a musical synthesizer
MIT License
1 stars 1 forks source link

Performance analysis tooling #4

Open skrytt opened 5 years ago

skrytt commented 5 years ago

For real-time DSP processing, CPU performance is important: a user may run many DSP programs on a system at once and expect the system to perform well.

There's inevitably some back and forth between what is considered "premature optimization" and what is considered necessary. My thinking is to design convenient ways of measuring performance of key algorithms, to streamline analysis of system performance and identify what areas of code would be good targets for optimization. This ticket is to track such efforts.

skrytt commented 5 years ago

I added in a command-line parameter "--timing-dump" that triggers the audio engine to print out timing information to stderr each iteration.