Text this: Benchmarking the optimization of optical machines with the planted solutions