1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/testing/testing_bench.ts
Vincent LE GOFF dcd01dd025 Eslint fixes (denoland/deno_std#356)
Make warnings fail
Original: 4543b563a9
2019-04-24 07:41:22 -04:00

18 lines
368 B
TypeScript

import { bench, runIfMain } from "./bench.ts";
import { runTests } from "./mod.ts";
import "./asserts_test.ts";
bench(async function testingSerial(b): Promise<void> {
b.start();
await runTests();
b.stop();
});
bench(async function testingParallel(b): Promise<void> {
b.start();
await runTests({ parallel: true });
b.stop();
});
runIfMain(import.meta);