U.S. swimmer Elizabeth Beisel did something a little crazy at the 2012 Summer Olympics in London. Before the biggest races of her life, she tried a performance-enhancing substance: coffee.

The results were electric. She swam two personal-best times and won a silver medal in the 400-meter individual medley and a bronze in the 200-meter backstroke.

At...