Skip to content

Commit d7ea0d5

Browse files
committed
PERF: fix Timestamp asv benchmark typos and add missing ones
1 parent 4c4c679 commit d7ea0d5

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

asv_bench/benchmarks/timestamp.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,20 @@ def time_is_quarter_end(self, tz, freq):
7676
self.ts.is_quarter_end
7777

7878
def time_is_year_start(self, tz, freq):
79-
self.ts.is_quarter_end
79+
self.ts.is_year_start
8080

8181
def time_is_year_end(self, tz, freq):
82-
self.ts.is_quarter_end
82+
self.ts.is_year_end
8383

8484
def time_is_leap_year(self, tz, freq):
85-
self.ts.is_quarter_end
85+
self.ts.is_leap_year
8686

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

90+
def time_month_name(self, tz, freq):
91+
self.ts.month_name()
92+
9093

9194
class TimestampOps(object):
9295
params = [None, 'US/Eastern', pytz.UTC,
@@ -116,6 +119,14 @@ def time_tz_localize(self, tz):
116119
if self.ts.tz is None:
117120
self.ts.tz_localize(tz)
118121

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

120131
class TimestampAcrossDst(object):
121132
def setup(self):

0 commit comments

Comments
 (0)