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

More granular micro-benchmark for the IO part of lookups #214

Merged
merged 1 commit into from
May 17, 2024

Conversation

jorisdral
Copy link
Collaborator

This tackles the same thing as #212, but only for the lookup micro-benchmarks.

@jorisdral jorisdral self-assigned this May 15, 2024
, bench "Batched lookups in IO" $
nfAppIO (\ks' -> lookupsInBatches hasBlockIO bsize resolveV rs blooms indexes kopsFiles ks') ks
whnfAppIO (\ks' -> lookupsInBatches hasBlockIO bsize resolveV rs blooms indexes kopsFiles ks') ks
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did this make a noticeable difference?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The difference is not very noticeable, or at least small enough that I can't say for certain whether there is a significant difference. We're talking about a ~10 micro-seconds difference in the positive lookup scenario, and no real difference in the negative lookup scenario

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Conceptually whnfAppIO is the right thing to do: the data should already be fully evaluated

@jorisdral jorisdral added this pull request to the merge queue May 17, 2024
Merged via the queue into main with commit 79ee50a May 17, 2024
12 checks passed
@jorisdral jorisdral deleted the jdral/granular-lookup-bench branch May 17, 2024 09:28
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