Skip to content

Commit 3f1e98c

Browse files
committed
REV/BENCH: NPV: Remove broadcasting operation benchmarks
These are no longer supported, and so should not be benchmarked
1 parent ad11a90 commit 3f1e98c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

benchmarks/benchmarks.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,11 @@ def setup(self, n_cashflows, cashflow_lengths, rates_lengths):
3737
self.cashflows_decimal = _to_decimal_array_2d(self.cashflows)
3838
self.rates_decimal = _to_decimal_array_1d(self.rates)
3939

40-
def time_broadcast(self, n_cashflows, cashflow_lengths, rates_lengths):
41-
npf.npv(self.rates, self.cashflows)
42-
4340
def time_for_loop(self, n_cashflows, cashflow_lengths, rates_lengths):
4441
for rate in self.rates:
4542
for cashflow in self.cashflows:
4643
npf.npv(rate, cashflow)
4744

48-
def time_broadcast_decimal(self, n_cashflows, cashflow_lengths, rates_lengths):
49-
npf.npv(self.rates_decimal, self.cashflows_decimal)
50-
5145
def time_for_loop_decimal(self, n_cashflows, cashflow_lengths, rates_lengths):
5246
for rate in self.rates_decimal:
5347
for cashflow in self.cashflows_decimal:

0 commit comments

Comments
 (0)