Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gymnasium performance improvement to Lunar Lander #89

Merged

Conversation

pseudo-rnd-thoughts
Copy link
Member

Farama-Foundation/Gymnasium#235 found a significant performance improvement to Lunar Lander

Using benchmark_step, the gymnasium environment achieves ~15000 steps per second (on my laptop), while mo-gymnasium currently achieves ~6500.

from gymnasium.utils.performance import benchmark_step
import mo_gymnasium

env = mo_gymnasium.make("LunarLander-v2")
mo_env = mo_gymnasium.make("mo-lunar-lander-v2")

print('env benchmark', benchmark_step(env, target_duration=15))
print('mo-env benchmark', benchmark_step(mo_env, target_duration=15))

This update achieves ~8000 which is still significant performance difference, which should be investigated further

@ffelten
Copy link
Collaborator

ffelten commented Mar 14, 2024

Amazing, that's why staying close to Gymnasium is so convenient. Thanks a lot Mark. Cheers,

@ffelten ffelten merged commit e3e05f3 into Farama-Foundation:main Mar 14, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants