We want to add a benchmark that measures performance of encoder and decoder, as number of processed samples per second.
Codecs benchmarks should be able to iterate an list of available codecs and measure each one, like we're doing it in codecs tests here: test_frame_encoder_decoder.cpp.
We use Google Benchmark. To add a new benchmark, just create a new file bench_FOO.cpp in src/tests/MODULE_NAME (roc_audio in this case). Here are examples of existing micro-benchmarks: 1, 2. You can find details on building and running benchmarks here.
We have two interfaces for audio codecs: IFrameEncoder and IFrameDecoder. Currently, they have just two implementations: PcmEncoder and PcmDecoder. Later we'll add more.
We want to add a benchmark that measures performance of encoder and decoder, as number of processed samples per second.
Codecs benchmarks should be able to iterate an list of available codecs and measure each one, like we're doing it in codecs tests here: test_frame_encoder_decoder.cpp.
We use Google Benchmark. To add a new benchmark, just create a new file
bench_FOO.cpp
insrc/tests/MODULE_NAME
(roc_audio
in this case). Here are examples of existing micro-benchmarks: 1, 2. You can find details on building and running benchmarks here.