Skip to content

Commit 8cde64c

Browse files
committed
dims=1 and dims=2 performance is identical so only test one
1 parent 187f8c7 commit 8cde64c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

perf/array.jl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,13 @@ gpu_vec_ints = reshape(gpu_mat_ints, length(gpu_mat_ints))
6161

6262
let group = addgroup!(group, "reverse")
6363
group["1d"] = @benchmarkable Metal.@sync reverse($gpu_vec)
64-
group["dims=1"] = @benchmarkable Metal.@sync reverse($gpu_mat; dims=1)
65-
group["dims=2"] = @benchmarkable Metal.@sync reverse($gpu_mat; dims=2)
66-
group["dims=1L"] = @benchmarkable Metal.@sync reverse($gpu_mat_long; dims=1)
67-
group["dims=2L"] = @benchmarkable Metal.@sync reverse($gpu_mat_long; dims=2)
64+
group["1dL"] = @benchmarkable Metal.@sync reverse($gpu_vec_long)
65+
group["2d"] = @benchmarkable Metal.@sync reverse($gpu_mat; dims=1)
66+
group["2dL"] = @benchmarkable Metal.@sync reverse($gpu_mat_long; dims=1)
6867
group["1d_inplace"] = @benchmarkable Metal.@sync reverse!($gpu_vec)
69-
group["dims=1_inplace"] = @benchmarkable Metal.@sync reverse!($gpu_mat; dims=1)
70-
group["dims=2_inplace"] = @benchmarkable Metal.@sync reverse!($gpu_mat; dims=2)
71-
group["dims=1L_inplace"] = @benchmarkable Metal.@sync reverse!($gpu_mat_long; dims=1)
72-
group["dims=2L_inplace"] = @benchmarkable Metal.@sync reverse!($gpu_mat_long; dims=2)
68+
group["1dL_inplace"] = @benchmarkable Metal.@sync reverse!($gpu_vec_long)
69+
group["2d_inplace"] = @benchmarkable Metal.@sync reverse!($gpu_mat; dims=1)
70+
group["2dL_inplace"] = @benchmarkable Metal.@sync reverse!($gpu_mat_long; dims=2)
7371
end
7472

7573
# 'evals=1' added to prevent hang when running benchmarks of CI

0 commit comments

Comments
 (0)