mirror of
https://github.com/denoland/deno.git
synced 2025-01-15 02:20:15 -05:00
19 lines
356 B
TypeScript
19 lines
356 B
TypeScript
|
import { bench, runBenchmarks } from "./../benching/mod.ts";
|
||
|
import { runTests } from "./mod.ts";
|
||
|
|
||
|
import "./test.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/ });
|