Skip to content

Conversation

@AdityaPandeyCN
Copy link

This PR modifies to benchmark the conversion time from SAM to RAM in both the formats ttree and RNTuple formats.

FILE *original_stdout = stdout;
stdout = fopen("/dev/null", "w");

auto ttree_start = std::chrono::high_resolution_clock::now();

Choose a reason for hiding this comment

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

We should use the way google bench is supposed to do it. These should be new benchmarks and not stop/start clocks...

Signed-off-by: AdityaPandeyCN <[email protected]>
for (auto _ : state) {

FILE *original_stdout = stdout;
stdout = fopen("/dev/null", "w");

Choose a reason for hiding this comment

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

That won’t work on windows.

Copy link
Author

Choose a reason for hiding this comment

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

I have done changes.Please have a look.

Signed-off-by: AdityaPandeyCN <[email protected]>
Signed-off-by: AdityaPandeyCN <[email protected]>
Copy link

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

LGTM!

@vgvassilev vgvassilev merged commit 30c92b5 into compiler-research:develop Sep 15, 2025
3 checks passed
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