Skip to content

Commit 3c2eb65

Browse files
committed
Update benchmark_Metal.jl
1 parent c255451 commit 3c2eb65

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

benchmarks/benchmark_Metal.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ pid = rand(1:M, N)
3232
fid = [rand(max(1, div(x, 8)-10):min(O, div(x, 8)+10)) for x in pid]
3333
x = rand(N)
3434
fes = [FixedEffect(pid), FixedEffect(fid)]
35-
36-
3735
@time solve_residuals!([x x x x], fes; double_precision = false, maxiter = 100)
38-
# 36.554763 seconds (98.71 M allocations: 5.253 GiB, 1.11% gc time, 114.45% compilation time: 7% of which was recompilation)
36+
# 28.370662 seconds (797.45 k allocations: 513.684 MiB, 0.05% gc time, 0.88% compilation time)
3937
@time solve_residuals!([x x x x], fes; double_precision = false, method = :Metal, maxiter = 100)
40-
# 20.652590 seconds (79.33 M allocations: 4.114 GiB, 0.75% gc time, 162.10% compilation time: <1% of which was recompilation)
38+
# 6.775223 seconds (9.18 M allocations: 713.836 MiB, 0.62% gc time, 18.49% compilation time: <1% of which was recompilation)
4139

4240

0 commit comments

Comments
 (0)