Closed michaelfeil closed 2 years ago
as discussed in #101:
np.clip
np.core.umath.clip
Time before for 10 runs for pusing task (200 steps,3 resets) : ~13.0s +- 200msafter 10.8s +- 150ms
~13.0s +- 200ms
10.8s +- 150ms
All changed functions have been like: np.testing.assert_array_equal(prior_implementation, faster_implementation) while running the pytests
np.testing.assert_array_equal(prior_implementation, faster_implementation)
as discussed in #101:
np.clip
is slower thannp.core.umath.clip
(saves ~10%) simulation timeTime before for 10 runs for pusing task (200 steps,3 resets) :
~13.0s +- 200ms
after10.8s +- 150ms
All changed functions have been like:
np.testing.assert_array_equal(prior_implementation, faster_implementation)
while running the pytests