Files
discordeno/tests/misc/benchmark.test.ts
2022-05-31 14:22:12 +00:00

16 lines
370 B
TypeScript

import { memoryBenchmarks } from "../../benchmarks/index.ts";
import enableCachePlugin from "../../plugins/cache/mod.ts";
import { loadBot } from "../mod.ts";
Deno.test({
name: "[Memory] Benchmark memory tests",
fn: async (t) => {
const bot = enableCachePlugin(loadBot());
await memoryBenchmarks(bot, {
log: true,
table: true,
});
},
});