1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-13 17:39:18 -05:00
denoland-deno/testing/bench.ts

17 lines
335 B
TypeScript
Raw Normal View History

import { bench, runBenchmarks } from "./../benching/mod.ts";
import { runTests } from "./mod.ts";
bench(async function testingSerial(b) {
b.start();
await runTests();
b.stop();
});
bench(async function testingParallel(b) {
b.start();
await runTests({ parallel: true });
b.stop();
});
runBenchmarks({ only: /testing/ });