meta-pytorch / meta-pytorch/torchcodec

Add memory consumption decoder benchmarks

Open
#166 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Python
Stars
1.2k
Forks
125
Avg merge
22h 47m
Merged PRs (30d)
54

Description

🚀 The feature

We currently have a benchmark that's main purpose is to detect memory leaks: memprofile_decoders.py. While it does report total memory usage for TorchCodec, that's not its purpose.

What we would have, ideally, is a benchmark that meets the following purposes:

  1. Measures memory usage of a decoder, both resident set size and virtual size.
  2. Compares TorchCodec to other available open source decoders.
  3. Configurable to be run quickly (less than 5 seconds) for interactive debugging and longer (more than 1 minute) for more formal experiments.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with benchmarks/decoders/memprofile_decoders.py to understand the existing memory measurement and decoder setup. Determine how to compare TorchCodec with other open-source decoders and expose short and long run modes. Done means reporting resident-set and virtual memory usage for each decoder, with both interactive and formal experiment durations supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.