MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / scaleUniqueCount

Function scaleUniqueCount

apps/web/src/scripts/usage/benchmark-insert-usage.ts:17–19  ·  view source on GitHub ↗
(originalCount: number, totalRows: number)

Source from the content-addressed store, hash-verified

15type Stats = typeof stats;
16
17function scaleUniqueCount(originalCount: number, totalRows: number): number {
18 return Math.max(1, Math.round((originalCount * TOTAL_RECORDS) / totalRows));
19}
20
21function randomString(avgLen: number, minLen: number, maxLen: number): string {
22 const len = Math.max(

Callers 2

generateStringPoolFunction · 0.85
runBenchmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected