Skip to content

Commit 99e3fab

Browse files
authored
chore: update db_benchmark groupby queries. (googleapis#920)
1 parent 514be7b commit 99e3fab

File tree

11 files changed

+363
-0
lines changed

11 files changed

+363
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{"benchmark_suffix": "50g_ordered", "table_id": "G1_1e9_1e2_5_0", "ordered": true}
2+
{"benchmark_suffix": "50g_unordered", "table_id": "G1_1e9_1e2_5_0", "ordered": false}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from pathlib import Path
16+
17+
import benchmark.utils as utils
18+
import bigframes_vendored.db_benchmark.groupby_queries as vendored_dbbenchmark_groupby_queries
19+
20+
if __name__ == "__main__":
21+
table_id, session, suffix = utils.get_dbbenchmark_configuration()
22+
current_path = Path(__file__).absolute()
23+
24+
utils.get_execution_time(
25+
vendored_dbbenchmark_groupby_queries.q1, current_path, suffix, table_id, session
26+
)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from pathlib import Path
16+
17+
import benchmark.utils as utils
18+
import bigframes_vendored.db_benchmark.groupby_queries as vendored_dbbenchmark_groupby_queries
19+
20+
if __name__ == "__main__":
21+
table_id, session, suffix = utils.get_dbbenchmark_configuration()
22+
current_path = Path(__file__).absolute()
23+
24+
utils.get_execution_time(
25+
vendored_dbbenchmark_groupby_queries.q10,
26+
current_path,
27+
suffix,
28+
table_id,
29+
session,
30+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from pathlib import Path
16+
17+
import benchmark.utils as utils
18+
import bigframes_vendored.db_benchmark.groupby_queries as vendored_dbbenchmark_groupby_queries
19+
20+
if __name__ == "__main__":
21+
table_id, session, suffix = utils.get_dbbenchmark_configuration()
22+
current_path = Path(__file__).absolute()
23+
24+
utils.get_execution_time(
25+
vendored_dbbenchmark_groupby_queries.q2, current_path, suffix, table_id, session
26+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from pathlib import Path
16+
17+
import benchmark.utils as utils
18+
import bigframes_vendored.db_benchmark.groupby_queries as vendored_dbbenchmark_groupby_queries
19+
20+
if __name__ == "__main__":
21+
table_id, session, suffix = utils.get_dbbenchmark_configuration()
22+
current_path = Path(__file__).absolute()
23+
24+
utils.get_execution_time(
25+
vendored_dbbenchmark_groupby_queries.q3, current_path, suffix, table_id, session
26+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from pathlib import Path
16+
17+
import benchmark.utils as utils
18+
import bigframes_vendored.db_benchmark.groupby_queries as vendored_dbbenchmark_groupby_queries
19+
20+
if __name__ == "__main__":
21+
table_id, session, suffix = utils.get_dbbenchmark_configuration()
22+
current_path = Path(__file__).absolute()
23+
24+
utils.get_execution_time(
25+
vendored_dbbenchmark_groupby_queries.q4, current_path, suffix, table_id, session
26+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from pathlib import Path
16+
17+
import benchmark.utils as utils
18+
import bigframes_vendored.db_benchmark.groupby_queries as vendored_dbbenchmark_groupby_queries
19+
20+
if __name__ == "__main__":
21+
table_id, session, suffix = utils.get_dbbenchmark_configuration()
22+
current_path = Path(__file__).absolute()
23+
24+
utils.get_execution_time(
25+
vendored_dbbenchmark_groupby_queries.q5, current_path, suffix, table_id, session
26+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from pathlib import Path
16+
17+
import benchmark.utils as utils
18+
import bigframes_vendored.db_benchmark.groupby_queries as vendored_dbbenchmark_groupby_queries
19+
20+
if __name__ == "__main__":
21+
table_id, session, suffix = utils.get_dbbenchmark_configuration()
22+
current_path = Path(__file__).absolute()
23+
24+
utils.get_execution_time(
25+
vendored_dbbenchmark_groupby_queries.q6, current_path, suffix, table_id, session
26+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from pathlib import Path
16+
17+
import benchmark.utils as utils
18+
import bigframes_vendored.db_benchmark.groupby_queries as vendored_dbbenchmark_groupby_queries
19+
20+
if __name__ == "__main__":
21+
table_id, session, suffix = utils.get_dbbenchmark_configuration()
22+
current_path = Path(__file__).absolute()
23+
24+
utils.get_execution_time(
25+
vendored_dbbenchmark_groupby_queries.q7, current_path, suffix, table_id, session
26+
)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from pathlib import Path
16+
17+
import benchmark.utils as utils
18+
import bigframes_vendored.db_benchmark.groupby_queries as vendored_dbbenchmark_groupby_queries
19+
20+
if __name__ == "__main__":
21+
table_id, session, suffix = utils.get_dbbenchmark_configuration()
22+
current_path = Path(__file__).absolute()
23+
24+
utils.get_execution_time(
25+
vendored_dbbenchmark_groupby_queries.q8, current_path, suffix, table_id, session
26+
)

0 commit comments

Comments
 (0)