mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 11:16:38 -05:00
4eb8e875fd
This commit changes "deno init" to generate "main_bench.ts" file which scaffold two example bench cases.
9 lines
145 B
TypeScript
9 lines
145 B
TypeScript
import { add } from "./main.ts";
|
|
|
|
Deno.bench(function addSmall() {
|
|
add(1, 2);
|
|
});
|
|
|
|
Deno.bench(function addBig() {
|
|
add(2 ** 32, 2 ** 32);
|
|
});
|