MCPcopy Create free account
hub / github.com/apache/fory / measureBatch

Function measureBatch

benchmarks/javascript/benchmark.js:952–958  ·  view source on GitHub ↗
(fn, batchSize)

Source from the content-addressed store, hash-verified

950}
951
952function measureBatch(fn, batchSize) {
953 const start = process.hrtime.bigint();
954 for (let i = 0; i < batchSize; i += 1) {
955 fn();
956 }
957 return process.hrtime.bigint() - start;
958}
959
960function benchmark(fn, minDurationSeconds) {
961 fn();

Callers 1

benchmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected