Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create micro-benchmarks for audio codecs #753

Open
gavv opened this issue Jul 12, 2024 · 2 comments
Open

Create micro-benchmarks for audio codecs #753

gavv opened this issue Jul 12, 2024 · 2 comments
Assignees
Labels
benchmarks Benchmarks and micro-benchmarks codecs Audio and FEC codecs easy hacks The solution is expected to be straightforward even if you are new to the project help wanted An important and awaited task but we have no human resources for it yet

Comments

@gavv
Copy link
Member

gavv commented Jul 12, 2024

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 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.

@gavv gavv added help wanted An important and awaited task but we have no human resources for it yet easy hacks The solution is expected to be straightforward even if you are new to the project codecs Audio and FEC codecs benchmarks Benchmarks and micro-benchmarks labels Jul 12, 2024
@gavv gavv added this to Roc Toolkit Jul 12, 2024
@github-project-automation github-project-automation bot moved this to Frontlog in Roc Toolkit Jul 12, 2024
@gavv gavv moved this from Frontlog to Help wanted in Roc Toolkit Jul 12, 2024
@anatmiller
Copy link

Hi @gavv, I'd be happy to help with this issue :)

@gavv
Copy link
Member Author

gavv commented Dec 18, 2024

@anatmiller Thanks, you're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmarks Benchmarks and micro-benchmarks codecs Audio and FEC codecs easy hacks The solution is expected to be straightforward even if you are new to the project help wanted An important and awaited task but we have no human resources for it yet
Projects
Status: Help wanted
Development

No branches or pull requests

2 participants