Benchmark API for deep learning