Skip to content

Commit bbed319

Browse files
committed
Add some sorting benchmarks
1 parent 205c238 commit bbed319

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

perf/array.jl

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,21 @@ let group = addgroup!(group, "random")
138138
end
139139

140140
let group = addgroup!(group, "sorting")
141-
group["1d"] = @async_benchmarkable sort($gpu_vec)
142-
group["2d"] = @async_benchmarkable sort($gpu_mat; dims=1)
143-
group["by"] = @async_benchmarkable sort($gpu_vec; by=sin)
141+
let group = addgroup!(group, "Float32")
142+
group["1d"] = @async_benchmarkable sort($gpu_vec)
143+
group["by=sin"] = @async_benchmarkable sort($gpu_vec; by=sin)
144+
group["dims=1"] = @async_benchmarkable sort($gpu_mat; dims=1)
145+
group["dims=2"] = @async_benchmarkable sort($gpu_mat; dims=2)
146+
group["dims=1L"] = @async_benchmarkable sort($gpu_mat_long; dims=1)
147+
group["dims=2L"] = @async_benchmarkable sort($gpu_mat_long; dims=2)
148+
end
149+
let group = addgroup!(group, "Int64")
150+
group["1d"] = @async_benchmarkable sort($gpu_vec_ints)
151+
group["dims=1"] = @async_benchmarkable sort($gpu_mat_ints; dims=1)
152+
group["dims=2"] = @async_benchmarkable sort($gpu_mat_ints; dims=2)
153+
group["dims=1L"] = @async_benchmarkable sort($gpu_mat_long_ints; dims=1)
154+
group["dims=2L"] = @async_benchmarkable sort($gpu_mat_long_ints; dims=2)
155+
end
144156
end
145157

146158
let group = addgroup!(group, "permutedims")

0 commit comments

Comments
 (0)