Skip to content

Commit 931134b

Browse files
committed
ENH: Added asv benchmarks
1 parent b3d70ef commit 931134b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

benchmarks/benchmarks/bench_ufunc.py

+11
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,17 @@ def time_less_than_scalar2(self, dtype):
134134
(self.d < 1)
135135

136136

137+
class CustomScalarInt(Benchmark):
138+
params = [10**size for size in range(1, 8)]
139+
param_names = ['size']
140+
141+
def setup(self, size):
142+
self.x = np.arange(size)
143+
144+
def time_floor_divide(self, size):
145+
self.x//8
146+
147+
137148
class Scalar(Benchmark):
138149
def setup(self):
139150
self.x = np.asarray(1.0)

0 commit comments

Comments
 (0)