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

ARROW-9604: [C++] Add aggregate min/max benchmark #7870

Closed
wants to merge 2 commits into from

Conversation

frankdjx
Copy link
Contributor

Add benchmark for aggregate min/max compute kernels

Signed-off-by: Frank Du frank.du@intel.com

@github-actions
Copy link

MINMAX_KERNEL_BENCHMARK(MinMaxKernelInt32, Int32Type);
MINMAX_KERNEL_BENCHMARK(MinMaxKernelInt64, Int64Type);

static void CountKernelInt64(benchmark::State& state) {
Copy link
Member

Choose a reason for hiding this comment

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

I don't think it's important to benchmark the count kernel. It's a trivial O(1) kernel.

frankdjx and others added 2 commits August 12, 2020 19:11
Also add count.

Signed-off-by: Frank Du <frank.du@intel.com>
Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

Thank you. Example output (AMD Ryzen, AVX2):

MinMaxKernelFloat/1048576/10000         222 us          222 us         3159 bytes_per_second=4.40764G/s null_percent=0.01 size=1048.58k
MinMaxKernelFloat/1048576/100           233 us          233 us         3002 bytes_per_second=4.19139G/s null_percent=1 size=1048.58k
MinMaxKernelFloat/1048576/10            399 us          399 us         1759 bytes_per_second=2.45046G/s null_percent=10 size=1048.58k
MinMaxKernelFloat/1048576/2             934 us          934 us          726 bytes_per_second=1071.02M/s null_percent=50 size=1048.58k
MinMaxKernelFloat/1048576/1             339 us          339 us         1973 bytes_per_second=2.87805G/s null_percent=100 size=1048.58k
MinMaxKernelFloat/1048576/0             187 us          187 us         3723 bytes_per_second=5.21389G/s null_percent=0 size=1048.58k

@pitrou pitrou closed this in faee652 Aug 12, 2020
@frankdjx frankdjx deleted the min_max_bm branch August 13, 2020 00:33
GeorgeAp pushed a commit to sirensolutions/arrow that referenced this pull request Jun 7, 2021
Add benchmark for aggregate min/max compute kernels

Signed-off-by: Frank Du <frank.du@intel.com>

Closes apache#7870 from jianxind/min_max_bm

Lead-authored-by: Frank Du <frank.du@intel.com>
Co-authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
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.

None yet

2 participants