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

Dev measure aggregate function #528

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

StLeoX
Copy link
Contributor

@StLeoX StLeoX commented Sep 5, 2024

Add several functions

  • If this is non-trivial feature, paste the links/URLs to the design doc.
  • Update the documentation to include this new feature.
  • Tests(including UT, IT, E2E) are added to verify the new feature.
  • If it's UI related, attach the screenshots below.

Here are new added functions:

  • max
  • count
  • sum
  • percent
  • rate

@wu-sheng
Copy link
Member

wu-sheng commented Sep 5, 2024

Please rebases the commits to avoid so long commit logs.

banyand/measure/aggregate/avg.go Outdated Show resolved Hide resolved
banyand/measure/aggregate/avg.go Outdated Show resolved Hide resolved
@StLeoX
Copy link
Contributor Author

StLeoX commented Sep 21, 2024

Benchmark loop-unrolling

The benchmark code is here.

On my machine, the result is:
image

We can see that, with the round increasing, the efficiency difference is decreasing.

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.

3 participants