MCPcopy Create free account
hub / github.com/brianc/node-postgres / run

Function run

packages/pg-protocol/src/b.ts:12–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const buffer = Buffer.from([33, 33, 33, 33, 33, 33, 33, 0])
11
12const run = () => {
13 if (count > LOOPS) {
14 console.log(performance.now() - start)
15 return
16 }
17 count++
18 for (let i = 0; i < LOOPS; i++) {
19 reader.setBuffer(0, buffer)
20 reader.cstring()
21 }
22 setImmediate(run)
23}
24
25run()

Callers 1

b.tsFile · 0.70

Calls 2

setBufferMethod · 0.80
cstringMethod · 0.80

Tested by

no test coverage detected