Skip to content

Instantly share code, notes, and snippets.

const { PrismaClient } = require(".prisma/client")
const prisma = new PrismaClient()
const ping = async () => {
const start = process.hrtime()
await prisma.user.findFirst({select: {id: true}})
const delta = process.hrtime(start)
const ms = delta[0] * 1000 + delta[1] / 1000000
console.log("ping:", ms + "ms")
}
ping()