Studies show that for most types of cognitively demanding tasks, anything but quiet hurts performance.
When silence and music were put head to head in more cognitively complex tests, people did better in silence. In a study from the 1980s, researchers gave subjects the option to listen to either upbeat or soft music of their preferred genre, or nothing, while counting backward. The people who listened to their favorite, upbeat tunes did worst of all, and those who heard silence did best.

kenary820/shutterstock