generate_index_benchmarks: benchmark no-axis, ax=0 and ax=ndim-1 cases