Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
samster25 committed Dec 19, 2023
1 parent 7206852 commit ddfbfa8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/benchmarks/test_concat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from __future__ import annotations

import uuid

from daft.series import Series


def test_string_concat(benchmark) -> None:
NUM_ROWS = 100_000
data = Series.from_pylist([str(uuid.uuid4()) for _ in range(NUM_ROWS)])
to_concat = [data] * 100

def bench_concat() -> Series:
return Series.concat(to_concat)

benchmark(bench_concat)

0 comments on commit ddfbfa8

Please sign in to comment.