MCPcopy Create free account
hub / github.com/Effect-TS/effect / batch

Function batch

packages/sql/pg/benchmark/PgCodec.ts:276–282  ·  view source on GitHub ↗
(run: () => unknown, rows = codecRowsPerRun)

Source from the content-addressed store, hash-verified

274let sink: unknown
275
276const batch = (run: () => unknown, rows = codecRowsPerRun) => () => {
277 let value: unknown
278 for (let index = 0; index < rows; index++) {
279 value = run()
280 }
281 sink = value
282}
283
284const options = {
285 iterations: 64,

Callers 2

PgCodec.tsFile · 0.70

Calls 1

runFunction · 0.50

Tested by

no test coverage detected