def METHOD_NAME(self, benchmark, widget,
                                     qtbot, fake_web_tab, num_tabs):
    """Benchmark for update_tab_titles."""
    for i in range(num_tabs):
        widget.addTab(fake_web_tab(), 'foobar' + str(i))
    with qtbot.wait_exposed(widget):
        widget.show()
    benchmark(widget.update_tab_titles)