Tart cherries contain a good amount of tryptophan and anthocyanins, two compounds that may help the body create melatonin and lengthen its effects. Research shows that supplementing with tart cherry juice increases levels of melatonin and helps improve sleep quality and duration.