mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-23 15:04:20 +00:00
add performance utilites to the documenation (#986)
This commit is contained in:
committed by
GitHub
parent
373ccf0e00
commit
f0202ae350
@@ -49,3 +49,13 @@ title: Utility functions
|
|||||||
.. autofunction:: gymnasium.utils.step_api_compatibility.convert_to_terminated_truncated_step_api
|
.. autofunction:: gymnasium.utils.step_api_compatibility.convert_to_terminated_truncated_step_api
|
||||||
.. autofunction:: gymnasium.utils.step_api_compatibility.convert_to_done_step_api
|
.. autofunction:: gymnasium.utils.step_api_compatibility.convert_to_done_step_api
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Runtime Performance benchmark
|
||||||
|
Sometimes is neccary to measure your environment's runtime performance, and ensure no performance regressions take place.
|
||||||
|
These tests require manual inspection of its outputs:
|
||||||
|
|
||||||
|
```{eval-rst}
|
||||||
|
.. autofunction:: gymnasium.utils.performance.benchmark_step
|
||||||
|
.. autofunction:: gymnasium.utils.performance.benchmark_init
|
||||||
|
.. autofunction:: gymnasium.utils.performance.benchmark_render
|
||||||
|
```
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
"""A collection of perofmance bencharks, useful for debugging performance related issues."""
|
"""A collection of runtime performance bencharks, useful for debugging performance related issues."""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
Reference in New Issue
Block a user