modified benchmark_cl3d.cpp