Skip to content

Commit b0a3e94

Browse files
committed
Add ASV
1 parent 50f9100 commit b0a3e94

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: asv_bench/benchmarks/frame_ctor.py

+12
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,16 @@ def time_frame_from_lists(self):
105105
self.df = DataFrame(self.data)
106106

107107

108+
class FromRange:
109+
110+
goal_time = 0.2
111+
112+
def setup(self):
113+
N = 1_000_000
114+
self.data = range(N)
115+
116+
def time_frame_from_range(self):
117+
self.df = DataFrame(self.data)
118+
119+
108120
from .pandas_vb_common import setup # noqa: F401 isort:skip

0 commit comments

Comments
 (0)