0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/testing/bench.ts
2019-03-04 14:19:03 -05:00

18 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/ });