
      // Build a table and timer.
      var performanceTimer = new goog.testing.PerformanceTimer(times);
      performanceTimer.setDiscardOutliers(true);

      var results = document.createElement('div');
      document.body.appendChild(results);
      var performanceTable = new goog.testing.PerformanceTable(results,
          performanceTimer, 2);

      setUp();

      // Next, run the benchmarks.
      for (var i = 0; i < names.length; i++) {
        performanceTable.run(benchmarks[names[i]], names[i])