Skip to content

Instantly share code, notes, and snippets.

View emiwar's full-sized avatar

Emil Wärnberg emiwar

View GitHub Profile
@emiwar
emiwar / benchmark_mujoco_rollouts.py
Created March 18, 2024 20:59
Naive benchmarking (i.e. wall-clock with time.time()) of python-mutlithreaded rollouts of a MuJoCo environment.
import mujoco
import mujoco.rollout
import tqdm
import numpy as np
import pandas as pd
import itertools
import time
model_filename = 'humanoid.xml'
model = mujoco.MjModel.from_xml_path(model_filename)