Are you sure? If you replace for i in 1:100 in your original code by for i in 1:5, it should run in acceptable time. Of course it is not optimized, but the code should run.
map dispatches on a specialized method for the case of an AbstractArray, which is the result of collect.