In a study done at the University of California at Santa Barbara, undergraduate students who took a mindfulness class and meditated for 10 to 20 minutes four times a week for two weeks scored higher on memory tests and exercises requiring attention than students who changed their nutrition and focused on healthy eating as a way to boost brain power.