code: function benchmark(numPeers, numChoices) {
      var heap = new PeerHeap();
      var i;
      var peers = [];
      var heapEls = [];
      var newPeer;
      var el;
  
      for (i = 0; i < numPeers; i++) {
          newPeer = new Peer();
          el = heap.add(newPeer);
          heapEls.push(el);
          newPeer.el = el;
          peers.push(newPeer);
      }
  
      var start = Date.now();
  
      for (i = 0; i < numChoices; i++) {
          var choice = heap.choose(0);
          if (choice) {
              choice.randPending();
  
              peers[rand(0, peers.length - 1)].randPending();
              peers[rand(0, peers.length - 1)].randPending();
              peers[rand(0, peers.length - 1)].randPending();
              peers[rand(0, peers.length - 1)].randPending();
              peers[rand(0, peers.length - 1)].randPending();
              peers[rand(0, peers.length - 1)].randPending();
  
          } else {
              console.log('no choice!');
          }
      }
  
      var time = Date.now() - start;
  
      return time;
  }
docs: /* eslint max-statements: [2, 28]