diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py index a949ffdced576..1deca8fe3aad0 100644 --- a/asv_bench/benchmarks/frame_ctor.py +++ b/asv_bench/benchmarks/frame_ctor.py @@ -105,4 +105,16 @@ def time_frame_from_lists(self): self.df = DataFrame(self.data) +class FromRange: + + goal_time = 0.2 + + def setup(self): + N = 1_000_000 + self.data = range(N) + + def time_frame_from_range(self): + self.df = DataFrame(self.data) + + from .pandas_vb_common import setup # noqa: F401 isort:skip