Skip to content

Commit fbd6c4c

Browse files
authored
chore: add sort benchmark (#781)
* chore: add sort benchmark * add file.
1 parent 44202bc commit fbd6c4c

File tree

2 files changed

+15
-0
lines changed
  • scripts/benchmark/db-benchmark

2 files changed

+15
-0
lines changed

scripts/benchmark/db-benchmark/sort

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Contains code from https://github.com/duckdblabs/db-benchmark/blob/master/pandas/sort-pandas.py
2+
3+
import bigframes.pandas as bpd
4+
5+
print("Sort benchmark 1: sort by int id2")
6+
7+
x = bpd.read_gbq("bigframes-dev-perf.dbbenchmark.J1_1e9_NA_0_0")
8+
9+
ans = x.sort_values("id2")
10+
print(ans.shape)
11+
12+
chk = [ans["v1"].sum()]
13+
print(chk)
14+
15+
bpd.reset_session()

0 commit comments

Comments
 (0)