1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05: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);
});