Cloudflare DevelopersCD
Cloudflare Developers•3mo ago•
5 replies
jepcd

Hi folks, I'm testing out hyperdrive (no

Hi folks, I'm testing out hyperdrive (no cache) and am noticing almost 3x higher query latencies than without.

Note: Worker in YYZ connecting to a planetscale db in ca-central-1

wrote up a quick little benchmark (source) and

{
  "runs": 10,
  "results": {
    "directWithPgbouncer": {
      "averageQueryTime": 10.45,
      "averageConnectionTime": 115,
      "averageTeardownTime": 10.2,
      "averageTotalTime": 229.7
    },
    "hyperdriveWithPgbouncer": {
      "averageQueryTime": 28.2,
      "averageConnectionTime": 1.8,
      "averageTeardownTime": 0,
      "averageTotalTime": 283.8
    }
  }
}

effectively means that any worker that makes more than ~5 queries would actually be slower with hyperdrive.

10 vs 30ms is not a big deal either way, but I was surprised to see it increase. Is this expected? 👀
Was this page helpful?