MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / main

Function main

benchmark/src/index.ts:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8export {Benchmark, Options};
9
10export async function main() {
11 const duration = process.env.DURATION ?? '30';
12 const options: Options = {
13 duration: +duration,
14 };
15 const bench = new Benchmark(options);
16 bench.logger = (title, stats) => console.log('%s:', title, stats);
17 await bench.run();
18}
19
20if (require.main === module) {
21 main().then(

Callers 1

index.tsFile · 0.70

Calls 2

runMethod · 0.95
logMethod · 0.65

Tested by

no test coverage detected