Created
September 13, 2017 21:31
-
-
Save danijar/300cbffb874cefa8c2dd733957cf8f4d to your computer and use it in GitHub Desktop.
One-liner to benchmark speed of Gym environments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -c "import gym,time;d=10000;e=gym.make('Ant-v1');s=time.time();e.reset();[e.reset() if e.step(e.action_space.sample())[2] else 0 for _ in range(d)];print(d/(time.time()-s),'FPS')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment