Marissa Mayer, Yahoo’s chief executive, will be well compensated for her five-year stint at the company, the NYT reports.