This is a primitive benchmark for the note filters in LMMS. The test is basically filtering 100 seconds of 96k stereo sound, and the reported units/second reflects how many of these units the filter handles in a second.
- Edit
bench.shto select filters to benchmark and set optimization options - Run
bench.sh --compileto generate the following binaries in directorytests:
baselineis the original, with standard LMMS compilation optionsoptimizedis the original filter code, optimizedmodifiedis the modified filter code (in basic_filters_modified.h), optimized
- Run
bench.sh --checkto verify the results are identical between original and modified code (NB Harder optimizations, like --fast-math seem to sometimes create small differences even in untouched parts of the code, somewhere around the fifth decimal or so) - Run
bench.sh --run [N]to test the selected filters. The optional numeric argument N selects the number of iterations.