Comment
Comment by ltjohnson
You gotta do what you gotta do, but your example probably doesn't do what you want in R.
My computer takes .2 seconds to generate the million random normals and assign them to vec1.
My computer only takes 0 seconds to evaluate the existing vec1 of length one million.