MCPcopy Create free account
hub / github.com/PythonOT/POT / _bench

Method _bench

ot/backend.py:916–920  ·  view source on GitHub ↗

r""" Executes a benchmark of the given callable with the given arguments.

(self, callable, *args, n_runs=1, warmup_runs=1)

Source from the content-addressed store, hash-verified

914 raise NotImplementedError()
915
916 def _bench(self, callable, *args, n_runs=1, warmup_runs=1):
917 r"""
918 Executes a benchmark of the given callable with the given arguments.
919 """
920 raise NotImplementedError()
921
922 def solve(self, a, b):
923 r"""

Callers 3

test_empty_backendFunction · 0.95
test_func_backendsFunction · 0.45
exec_benchFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36