res) => {
            const time = performance.now() - lastClicked
            console.log(`Update took ${time}ms`)
            output.textContent = res.rows.map((row) => row.id).join(', ')
          })
        })

        addBtn.addEventListener('click', async () => {
          lastClicked = performance.now()
          await pg.query(
            'INSERT INTO test (name, rand) VALUES ($1, random());',
            [`test${++counter}${nameSuffix}`],
          )
        })
      </script>
      <div id="log">