;
      }
    };

    var h1, p1, p2;

    function setUp() {
      h1 = document.getElementsByTagName('h1')[0];
      var pTags = document.getElementsByTagName('p');
      p1 = pTags[0];
      p2 = pTags[1];
    }

    function benchmarkGetText_fromH1() {
      bot.dom.getVisibleText(h1);
    }

    function benchmarkGetText_fromH1Span() {
      bot.dom.getVisibleText(h1.firstChild);
    }

    function benchmarkGetText_fromFirstP() {
      bot.dom.getVisibleText(p1);
    }

    function benchmarkGetText_f