Skip to content

Some performance tests comparing standard library performance for audio dsp use. Companion repo for blog post series on std::algorithm for audio processing use.

Notifications You must be signed in to change notification settings

noizebox/std-algorithm-for-audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using std::algorithm for audio

This is a companion repository for the series of blog posts on using std::algorithm for audio dsp processing (Part 1, Part 2) It contains all the code referenced in the posts and you can use it for reference or play around and see what the results are on other systems.

Requirements

No external dependencies, though you need a compiler with C++17 support. GCC 7 or later, or Clang 5 or later should do the job.

Building and running

The script build_and_run.sh will set up CMake with all optimisations, build and run the tests. By default it will optimise for the local system architecture with -march=native.

Rebuilds can be done by calling make in the build folder.

Build options

The CMake variable BUFFER_SIZE can be set to build with different buffer sizes if you want to try 16, 32, 128 samples, etc. THe default is 64 samples.

If you want to build with a different compiler, set the CXX environment variable to point to the requested compiler, delete the build folder and run the build script again.

About

Some performance tests comparing standard library performance for audio dsp use. Companion repo for blog post series on std::algorithm for audio processing use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published