Benchmarking model-free and model-based optimal control