0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/cli/tools/init/templates/main_bench.ts

10 lines
145 B
TypeScript
Raw Normal View History

import { add } from "./main.ts";
Deno.bench(function addSmall() {
add(1, 2);
});
Deno.bench(function addBig() {
add(2 ** 32, 2 ** 32);
});