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

Add benchmarks for stream filtering and sorting #449

Merged
merged 5 commits into from
May 22, 2024

Conversation

ButterBright
Copy link
Member

@ButterBright ButterBright commented May 21, 2024

The specification of the test environment is:
OS: Ubuntu 22.04.3 LTS x86_64
CPU: AMD EPYC 7282 (4) @ 2.794GHz
Memory: 7951MiB

The parameters for the benchmark test are:
{batchCount: 2, timestampCount: 500, seriesCount: 100, tagCardinality: 10, startTimestamp: 1, endTimestamp: 1000}
{batchCount: 2, timestampCount: 500, seriesCount: 100, tagCardinality: 10, startTimestamp: 900, endTimestamp: 1000}
{batchCount: 2, timestampCount: 500, seriesCount: 100, tagCardinality: 10, startTimestamp: 300, endTimestamp: 400}

The results of the benchmark test are:
BenchmarkFilter/filter-4 1 4685496299 ns/op 2221001152 B/op 9874080 allocs/op
BenchmarkFilter/filter#01-4 1000000000 0.4689 ns/op 0 B/op 0 allocs/op
BenchmarkFilter/filter#02-4 1 1107566728 ns/op 221140904 B/op 990019 allocs/op
BenchmarkSort/sort-4 1 6618840435 ns/op 2342512952 B/op 11794139 allocs/op
BenchmarkSort/sort#01-4 1 2447131200 ns/op 368143928 B/op 3009694 allocs/op
BenchmarkSort/sort#02-4 1 3682991050 ns/op 376661456 B/op 3047854 allocs/op

@hanahmily hanahmily merged commit 7dfd3b9 into apache:main May 22, 2024
14 checks passed
@hanahmily
Copy link
Contributor

Could you please provide the specifications of your testing machine?

@ButterBright
Copy link
Member Author

Okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants