-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve degenerate performance in
create_structs_data
(#14761)
Resolves issue [#14716](#14716) - Eliminated unnecessary recursive self-calls in the `superimpose_nulls_no_sanitize` function, addressing performance issues in `make_structs_column`. - Introduced `STRUCT_CREATION_NVBENCH` to assess the performance of the `create_structs_data` function. Authors: - Suraj Aralihalli (https://github.com/SurajAralihalli) - Nghia Truong (https://github.com/ttnghia) Approvers: - Nghia Truong (https://github.com/ttnghia) - David Wendt (https://github.com/davidwendt) URL: #14761
- Loading branch information
1 parent
70cdeec
commit 66c3e8e
Showing
3 changed files
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2024, NVIDIA CORPORATION. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#include <benchmarks/common/generate_nested_types.hpp> | ||
|
||
#include <nvbench/nvbench.cuh> | ||
|
||
void nvbench_create_structs(nvbench::state& state) | ||
{ | ||
state.exec(nvbench::exec_tag::sync, | ||
[&](nvbench::launch& launch) { auto const table_ptr = create_structs_data(state); }); | ||
} | ||
|
||
NVBENCH_BENCH(nvbench_create_structs) | ||
.set_name("create_structs") | ||
.add_int64_power_of_two_axis("NumRows", {10, 18, 26}) | ||
.add_int64_axis("Depth", {1, 8, 16}) | ||
.add_int64_axis("Nulls", {0, 1}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters