benchmark map vs. loop