```julia X = rand(10,3,4); x= rand(1,3,4); @btime maximum!($x,$X) # 452.492 ns (6 allocations: 240 bytes) ``` See https://discourse.julialang.org/t/maximum-allocates/14191.