Skip to content

Commit 9f36bbe

Browse files
committed
PERF: fix Timestamp asv benchmark typos and add missing ones
1 parent 26c9597 commit 9f36bbe

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

asv_bench/benchmarks/timestamp.py

+15-3
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,20 @@ def time_is_quarter_end(self, tz, freq):
7777
self.ts.is_quarter_end
7878

7979
def time_is_year_start(self, tz, freq):
80-
self.ts.is_quarter_end
80+
self.ts.is_year_start
8181

8282
def time_is_year_end(self, tz, freq):
83-
self.ts.is_quarter_end
83+
self.ts.is_year_end
8484

8585
def time_is_leap_year(self, tz, freq):
86-
self.ts.is_quarter_end
86+
self.ts.is_leap_year
8787

8888
def time_microsecond(self, tz, freq):
8989
self.ts.microsecond
9090

91+
def time_month_name(self, tz, freq):
92+
self.ts.month_name()
93+
9194

9295
class TimestampOps(object):
9396
params = [None, 'US/Eastern', pytz.UTC,
@@ -117,6 +120,15 @@ def time_tz_localize(self, tz):
117120
if self.ts.tz is None:
118121
self.ts.tz_localize(tz)
119122

123+
def time_to_julian_date(self, tz):
124+
self.ts.to_julian_date()
125+
126+
def time_floor(self, tz):
127+
self.ts.floor('5T')
128+
129+
def time_ceil(self, tz):
130+
self.ts.ceil('5T')
131+
120132

121133
class TimestampAcrossDst(object):
122134
def setup(self):

0 commit comments

Comments
 (0)