Skip to content

Feat: support input sam files for conversion time benchmarks#52

Open
neo-0007 wants to merge 1 commit intocompiler-research:developfrom
neo-0007:feat/conversion-benchmarking-ipfiles
Open

Feat: support input sam files for conversion time benchmarks#52
neo-0007 wants to merge 1 commit intocompiler-research:developfrom
neo-0007:feat/conversion-benchmarking-ipfiles

Conversation

@neo-0007
Copy link
Copy Markdown

@neo-0007 neo-0007 commented Mar 28, 2026

Synthetic SAM files were generated for conversion benchmark. Now we will be able to give our own input sam files ( real data ) as args and get the benchmark results.

We do not count the number of reads , so adding MB_per_sec which can be used for comparison

Suppressed some clang tidy suggestions , some can be changed but the code would need a lot of refactoring , still i can apply those suggestions if wanted.

The python bench-marking is present for this kind of use but it uses a .perf file for which generator is currently depreciated as it uses the past root macro based approach. And .perf files can only be created on Linux and maybe MacOS. I am open to fixing tools_perf.py and perf_utils.py if wanted. Thanks !

currently synthetic SAM files are generated for conversion benchmark
Now we will be able to give our own input sam files ( real data ) as args and get the benchmark results

Signed-off-by: Hrishikesh Gohain <hrishikeshgohain123@gmail.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.85%. Comparing base (5cec39c) to head (05f54bd).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #52      +/-   ##
===========================================
+ Coverage    64.78%   64.85%   +0.06%     
===========================================
  Files           16       16              
  Lines         1525     1525              
  Branches       632      632              
===========================================
+ Hits           988      989       +1     
  Misses         462      462              
+ Partials        75       74       -1     
Flag Coverage Δ
unittests 64.85% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: included header vector is not used directly [misc-include-cleaner]

Suggested change
#include <string>
#include <string>

{
auto file_index = static_cast<std::size_t>(state.range(0));
std::string sam_file = input_files[file_index];
std::string rntuple_file = sam_file + ".rntuple.root";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]

   std::string rntuple_file = sam_file + ".rntuple.root";
                                       ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants