permutedims benchmarked