mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
18 lines
368 B
TypeScript
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);
|